EVM Balances

Get native token balance

Gets native token balance of a wallet address.

Balance at a given block can be retrieved with the blockNumber parameter.

get/v1/chains/{chainId}/addresses/{address}/balances:getNative

Request

  • Base URL: https://data-api.avax.network
  • URL: https://data-api.avax.network/v1/chains/{chainId}/addresses/{address}/balances:getNative
  • Auth: one of:
    • API key in header x-glacier-api-key
    • none

Path parameters

chainIdstring required

A supported evm chain id or blockchain id. Use the /chains endpoint to get a list of supported chain ids.

addressstring required

A wallet address.

Query parameters

blockNumberstring

The block number, if not defined the block number will be the latest block.

currency'usd' | 'eur' | 'aud' | 'cad' | 'chf' | 'clp' | 'cny' | 'czk' | 'dkk' | 'gbp' | 'hkd' | 'huf' | 'jpy' | 'nzd'

ISO 4217 currency code.

The currency that return values should use. Defaults to USD.

Response

Successful response

Example response

{
  "nativeTokenBalance": {
    "name": "Wrapped AVAX",
    "symbol": "WAVAX",
    "decimals": 18,
    "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg",
    "chainId": "43114",
    "balance": "2000000000000000000"
  }
}

Changes

No recorded changes to this operation across all 3 revisions of this API.