Closed LanfordCai closed 6 years ago
/v1/chain/get_currency_balance {"code":"eosio.token", "account": "exchange", "symbol":"EOS"}
are there plans to refactor chain to use "contract" instead of "code" for parity with cleos or vice versa?
For now, we should use "code" rather than "contract" to do the request, but it might be refactored at some time... Thanks for the reference of @ItsLeeOwen
TESTNET: JUNGLE testnet OS: Ubuntu 16.04 EOS Version: DAWN 4.2
PROBLEM:
If I executed
./cleos.sh get currency stats eosio.token EOS
in my node, the response is:But by http request
curl 'http://my_node:8888/v1/chain/get_currency_stats' -d '{"contract":"eosio.token","symbol":"EOS"}'
the response is:
Same issue for
get currency balance
,