{'method': 'call', 'params': ['database_api', 'get_config', []], 'jsonrpc': '2.0', 'id': 1}
leads to Bad Cast:Invalid cast from type 'array_type' to Object
The same call works on "https://api.steemit.com"
{'method': 'call', 'params': ['database_api', 'get_config', []], 'jsonrpc': '2.0', 'id': 1}
leads to Bad Cast:Invalid cast from type 'array_type' to Object
The same call works on "https://api.steemit.com"
Thanks for pointing out the issue. There are two things going on:
block_api
methods are not enabled on my node. I followed the recommendedfullnode.config.ini
from the Steem repository, so I'm not sure why they are not there. I opened issue https://github.com/steemit/steem/issues/2323 to get to the bottom of this.get_config
call that you have above, but it does not look like it is in the expected "19.4" format. If I call using the following call, it works:curl https://appbasetest.timcliff.com --data '{"jsonrpc":"2.0", "method":"database_api.get_config", "params":{}, "id":1}'
The second point was on my side. It works now and I'm getting
_registered_apis.end(): Could not find API block_api
.Thank you for your help with the 19.4 api call format.
Something looks wrong with the formatting, but I’ll have to wait until I get home to my workstation tonight to take a closer look.
api.steemit.com is behind a Jussi instance btw, so it accepts requests in the “old” format.