Recommended default.
getMultichainTokenBalances is the most general
balance fetcher — it batches token balances across any combination of
chains, networks, and addresses in a single API call. Use it unless you
specifically only need one chain (getTokenBalances)
or the native gas balance (getNativeBalance).getMultichainTokenBalances function. This fetches cryptocurrency and token balances for wallet addresses across different chains, networks, and addresses specified in the request.
Usage
- JavaScript
- React
Parameters
MultichainAccountBalancesRequest
Balance Request Object
Response
ReturnsPromise<MultichainAccountBalanceResponse['chainBalances']> — an array of chain balance objects organized by chain and network.
Related functions
- Getting Token Balances - Single-network token balance variant
- Getting Native Balance - Native gas balance only, via RPC
- Getting Wallet Accounts
- Getting Active Network