Skip to main content

balance

/queryBalance

query tokens balance with provided user address.

Notice

This endpoint is temporary disabled.

Notice

This function require fees to use, be sure not to use it too much.

Param

typenamedetail
straddressthe address that are going to query
listnetworkwhich network neet to quote.
Notice

For the network, Params are same as NetworkID

it can query mulitchain by putting network into a list:

[101, 1056, 10137]

Request

curl --location --request POST 'https://api.anyway.network/queryBalance' \
--header 'Content-Type: application/json' \
--data-raw '{
"address": "0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B",
"network": [101, 1056, 10137]
}'

Response

[
{
"blockchain": "eth",
"tokenName": "Ethereum",
"tokenSymbol": "ETH",
"tokenDecimals": 18,
"tokenType": "NATIVE",
"holderAddress": "0xab5801a7d398351b8be11c439e05c5b3259aec9b",
"balance": "59.410761351934578579",
"balanceRawInteger": "59410761351934578579",
"balanceUsd": "97879.151119493463653254",
"tokenPrice": "1647.498683608542040524",
"thumbnail": "https://www.ankr.com/rpc/static/media/eth.3ee8ddd4.svg",
"anywayNetworkId": 101
},
{
"blockchain": "polygon",
"tokenName": "Matic Token",
"tokenSymbol": "MATIC",
"tokenDecimals": 18,
"tokenType": "ERC20",
"contractAddress": "0x0000000000000000000000000000000000001010",
"holderAddress": "0xab5801a7d398351b8be11c439e05c5b3259aec9b",
"balance": "4.91282001",
"balanceRawInteger": "4912820010000000000",
"balanceUsd": "0",
"tokenPrice": "0",
"thumbnail": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x7D1AfA7B718fb893dB30A3aBc0Cfc608AaCfeBB0/logo.png",
"anywayNetworkId": 10137
},
......

]