Skip to main content

TokenBalancesResponse

okboolean
Example: true
chainIdstring
Example: 1
accountstring

Lowercase account address

Example: 0xbada9c382165b31419f4cc0edf0fa84f80a3c8e5
countinteger

Number of balance entries

balances object[]
  • Array [
  • addressstring

    Token contract address (zeroAddress for native)

    Example: 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
    symbolstring
    Example: USDC
    namestring
    Example: USD Coin
    decimalsinteger
    Example: 6
    balanceRawstring

    Raw balance in smallest unit (wei)

    Example: 1000000
    balancestring

    Formatted balance as decimal string

    Example: 1.0
    balanceUSDnumber

    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
    }
    ]
    }