0

How do you return the balance of multiple tokens for an account in a single call?

I'm using get_currency_balance to return the balance of a single token:

POST https://eos.greymass.com/v1/chain/get_currency_balance

{
    "code": "eosio.token",
    "account": "b1",
    "symbol": "EOS"
}

1 Answer 1

0

There is no native single endpoint to return all Token-Balances for a single account. You would need to do one request per token-contract.

Dfuse offers a GraphQl-Query (accountBalances) to query multiple balances at once but dfuse comes with a rate-limit.

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.

Not the answer you're looking for? Browse other questions tagged or ask your own question.