eos
eos copied to clipboard
How can I get my contract currency balance with c++ code?
I want to get my contract currency balance within my contract code, but the eosio::account::get (account_balance &acnt) cann't use, so how can I do that?
Also need to get the other user's account balance.
It can get by "cleos get currency balance eosio.token XXX" by command. But do not find a way in contract.
Please refer to the system contract eosio.token.cpp & eosio.token.hpp to get the currency balance table
We haven't received any update for this. If you still have the problem and wish to discuss further, please post it in https://eosio.stackexchange.com