Total Token Balances: Asset Query by Address

·

Retrieve comprehensive token balance information for any blockchain address across multiple chains. This powerful API supports:

👉 Explore our Web3 API solutions for advanced blockchain data access.

API Endpoint

GET https://web3.okx.com/api/v5/wallet/asset/all-token-balances-by-address

Supported Token Types

Token CategoryExamples
Native TokensETH, BNB, MATIC
EVM TokensERC20, BEP20, HRC20
Bitcoin InscriptionsBRC-20, SRC-20
Alternative ChainsFractal Bitcoin (FBRC-20)

Request Parameters

Required Fields:

Optional Filters:

Response Structure

{
  "tokenAssets": [
    {
      "chainIndex": "chain_identifier",
      "tokenAddress": "contract_address",
      "symbol": "TOKEN",
      "balance": "100.50",
      "tokenType": "1|2",
      "isRiskToken": false
    }
  ]
}

Key Response Fields:

Use Cases

  1. Multi-chain Portfolio Tracking
    Monitor assets across Ethereum, Bitcoin, and 48+ other chains simultaneously.
  2. Risk Management
    Identify and filter suspicious airdrop tokens automatically.
  3. DeFi Integration
    Build dashboards displaying native + token balances in unified interfaces.

FAQ

Q: What's the maximum chain limit per request?
A: 50 chains for optimal performance.

Q: How often is balance data updated?
A: Real-time synchronization with blockchain nodes.

Q: Does this support Solana tokens?
A: Currently focuses on EVM and Bitcoin ecosystems.

Q: Can I retrieve historical balance data?
A: This endpoint provides current balances only.

👉 Get API documentation for implementation examples and response samples.