ankr_getAccountBalance
ankr_getAccountBalance
Retrieves the balance of the specified account.
Request
This endpoint expects an object.
walletAddress
Address to get the balance of.
blockchain
Name of the blockchain or list of blockchain names. Single: eth. Multiple: [eth, bsc, fantom, avalanche, polygon, arbitrum, syscoin, optimism, eth_goerli, polygon_mumbai, avalanche_fuji]. All chains: empty value.
nativeFirst
Sorting order. Native network token first (true) or not (false).
onlyWhitelisted
Filtering. Only show tokens listed on CoinGecko (true) or all the tokens (false). Default — true.
pageSize
Number of entries per page. Max value — all, default value — all.
pageToken
Current page token for pagination.
Response
Result returned by ankr_getAccountBalance.
assets
totalBalanceUsd
Total value of assets at the address calculated by Ankr, in US dollars.
nextPageToken
Next page token for pagination.
totalCount
Total number of all assets (ERC20) at the address.