Skip to main content
React Native provides access to wallet balances through the dynamicClient.wallets.getBalance() method. You can get the balance for the primary wallet or any specific wallet instance.
React Native
import { dynamicClient } from '<path to client file>';

// Get balance for the primary wallet
const primary = dynamicClient.wallets.primary;
if (primary) {
  const { balance } = await dynamicClient.wallets.getBalance({ wallet: primary });
  // e.g. set state with balance
}
This approach gives you direct access to wallet balances while maintaining consistency with the React Native SDK patterns.

Multichain Balances

For applications that need to fetch token balances across multiple blockchain networks simultaneously, Dynamic provides a getMultichainBalances method. This is useful for displaying comprehensive portfolio views or checking balances across different chains without making separate API calls. In React Native, use the getMultichainBalances method on the wallets module:
React Native
import { dynamicClient } from '<path to client file>';
import { ChainEnum } from '@dynamic-labs/sdk-api-core';

const wallet = dynamicClient.wallets.primary;

if (wallet) {
  const balances = await dynamicClient.wallets.getMultichainBalances({
    balanceRequest: {
      filterSpamTokens: true,
      balanceRequests: [
        {
          address: wallet.address,
          chain: ChainEnum.Evm,
          networkIds: [1, 137, 56], // Ethereum, Polygon, BNB
        },
      ],
    },
  });
}