I can run issue and transfer commands from https://github.com/EOSIO/eos/wiki/Tutorial-eosio-token-Contract
How do I run get_supply and get_balance?
I'm trying commands like
cleos push action eosio.asset get_balance '[ "rayadmin", "SYS" ]' -p rayadmin
but no luck so far.
get_supplyandget_balanceare not actions that you can use with cleos. Only the actions defined in the macroEOSIO_ABI( eosio::token, (create)(issue)(transfer) )at the bottom of eosio.token.cpp can be used as actions with cleos.get_supplyandget_balanceare 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 forrayadminby doingcleos get table eosio.asset rayadmin accountsand the supply with
cleos get table eosio.asset SYS stat