getMultichainBalances function.
This function fetches cryptocurrency and token balances for wallet addresses across different chains, networks and addresses specified in the request.
Usage
Parameters
| Parameter | Type | Description | 
|---|---|---|
balanceRequest | MultichainAccountBalancesRequest | The balance request configuration | 
MultichainAccountBalancesRequest
| Parameter | Type | Required | Description | 
|---|---|---|---|
filterSpamTokens | Boolean | No | Filter out spam tokens (default: true) | 
balanceRequests | Array | Yes | Array of balance request objects | 
Balance Request Object
| Parameter | Type | Required | Description | 
|---|---|---|---|
address | String | Yes | The wallet address | 
chain | ChainEnum | Yes | Chain type (EVM, SOL, BTC, etc.) | 
networkIds | Array<Number> | Yes | Array of network IDs to query | 
whitelistedContracts | Array<String> | No | Contract addresses to not filter out | 
Response
The function returns a Promise that resolves tochainBalances - an array of chain balance objects organized by chain and network.
Related functions
- Getting Balance - For native token balance only
 - Getting Wallet Accounts
 - Getting Active Network