2

How to query the balance of an account using EOS api? Is is possible to query account balance with public key or account name?

1 Answer 1

2

You can check balance using account name. Check out get_currency_balance endpoint

Balances are specific to a smart contract. Use eosio.token as code parameter for a system smart contract polling. You can left symbol parameter empty to poll all the tokens.

Also you can get account names from public key using get_key_accounts endpoint

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.