How to get total balance and refund size
Hi, I used getCurrencyBalance and getAccount to get a EOS balance. However both returns are strange.
-
getCurrencyBalance : this only returns "unstaked balance".
-
getAccount : this is more strange. this returns staked size for bandwidth, CPU. There is field "result.voter_info.unstaking". in here what is the meaning of info.unstaking? Even I unstake some EOS, this field value does not change.
-
so my questions is how to get a) Total balance b) Refund(Initiating unstake, so this will take 3 days to be completely unstaked.
- all terms what I used are based on "http://eosflare.io".
thanks.
Have you already checked EOSIO/eos for this answer? I can ask around for this but there is probably a discussion / feature in the works already.
see: https://github.com/eosio/eos/issues
I used getTableRows to solve this.