RE: Understanding The eosio.token Contract

You are viewing a single comment's thread from:

Understanding The eosio.token Contract

in eos •  6 years ago 

get_supply and get_balance are not actions that you can use with cleos. Only the actions defined in the macro EOSIO_ABI( eosio::token, (create)(issue)(transfer) ) at the bottom of eosio.token.cpp can be used as actions with cleos. get_supply and get_balance are not exposed directly as actions, instead, I believe you would call them from inside other functions that you would write on your own. You can get the balance for rayadmin by doing

cleos get table eosio.asset rayadmin accounts

and the supply with

cleos get table eosio.asset SYS stat

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!