ankr_getAccountBalance

Retrieves the balance of the specified account.

Request

This endpoint expects an object.
walletAddressstringRequired
Address to get the balance of.
blockchainenum or list of enumsOptional

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.

nativeFirstbooleanOptional

Sorting order. Native network token first (true) or not (false).

onlyWhitelistedbooleanOptional

Filtering. Only show tokens listed on CoinGecko (true) or all the tokens (false). Default — true.

pageSizeintegerOptional>=1

Number of entries per page. Max value — all, default value — all.

pageTokenstringOptional
Current page token for pagination.

Response

Result returned by ankr_getAccountBalance.

assetslist of objects or null
totalBalanceUsdstring
Total value of assets at the address calculated by Ankr, in US dollars.
nextPageTokenstringOptional
Next page token for pagination.
totalCountintegerOptional

Total number of all assets (ERC20) at the address.