Asset Details: Multi-Chain Token Balances by Address

ยท

Overview

Query the token balance list for an address across multiple or specific blockchain networks. This balance lookup supports:

๐Ÿ‘‰ Explore Web3 API solutions


API Endpoint

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


Request Parameters

ParameterTypeRequiredDescription
addressStringYesTarget wallet address
chainsStringYesComma-separated chain identifiers (max 50 chains)
filterStringNo0: Exclude risky airdrops (default)
1: Include all tokens

Response Parameters

FieldTypeDescription
tokenAssetsArrayList of token balances
chainIndexStringUnique chain identifier
tokenAddressStringSmart contract address
symbolStringToken ticker (e.g., ETH)
balanceStringFormatted token quantity
rawBalanceStringRaw token amount (unsupported chains return empty)
tokenPriceStringUSD value per token unit
tokenTypeString1: Standard token
2: Inscription (e.g., BRC-20)
transferAmountStringDirectly transferable inscription balance (e.g., BRC-20)
availableAmountStringPending inscription balance requiring engraving
isRiskTokenBooleantrue: Flagged as risky airdrop

Use Cases

  1. Portfolio Tracking: Monitor cross-chain holdings in a single query.
  2. Risk Management: Filter suspicious airdrops before interactions.
  3. Dapp Integration: Fetch real-time balances for wallet dashboards.

๐Ÿ‘‰ Optimize your Web3 workflow


FAQ

Q: How often is balance data updated?

A: Balances reflect real-time on-chain state with sub-minute latency.

Q: Which chains support rawBalance?

A: Ethereum, Bitcoin, and BSC currently; others will be added progressively.

Q: Can I query NFTs with this endpoint?

A: Noโ€”this endpoint focuses solely on fungible tokens and inscriptions.

Q: Why filter risky airdrops?

A: Prevents accidental interaction with scam tokens that may compromise wallet security.


Best Practices

Need deeper technical guidance? ๐Ÿ‘‰ Contact our API team