TokenBalancesResponse
okboolean
Example:
truechainIdstring
Example:
1accountstring
Lowercase account address
Example:
0xbada9c382165b31419f4cc0edf0fa84f80a3c8e5countinteger
Number of balance entries
balances object[]
Array [
addressstring
Token contract address (zeroAddress for native)
Example:
0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48symbolstring
Example:
USDCnamestring
Example:
USD Coindecimalsinteger
Example:
6balanceRawstring
Raw balance in smallest unit (wei)
Example:
1000000balancestring
Formatted balance as decimal string
Example:
1.0balanceUSDnumber
Balance value in USD
Example:
1]
TokenBalancesResponse
{
"ok": true,
"chainId": "1",
"account": "0xbada9c382165b31419f4cc0edf0fa84f80a3c8e5",
"count": 0,
"balances": [
{
"address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"symbol": "USDC",
"name": "USD Coin",
"decimals": 6,
"balanceRaw": "1000000",
"balance": "1.0",
"balanceUSD": 1
}
]
}