Skip to main content
Token balance are currently supported on: Ethereum, Worldchain, Shape, Zksync, Optimism, Polygon, Geist, Arbitrum, Blast, Linea, Base, Scroll, Gnosis, BNB, Avalanche, Apechain, Lens, Soneium, Rootstock, Abstract, Settlus, Ink, Solana, Bitcoin runes.Dynamic supports fetching the top 3000 tokens by market cap.
React Native
    // React Native does not have a built-in token balances hook.
    // Options:
    // - Use Dynamic UI (User Profile) which shows multi-asset balances
    // - Or build your own by combining:
    //   a) dynamicClient.wallets.getBalance for native balance
    //   b) A third-party indexer for ERC-20/solana/sui tokens

    import { dynamicClient } from '<path to client file>'

    export async function getNativeBalanceRN() {
      const wallet = dynamicClient.wallets.primary
      if (!wallet) return null
      const { balance } = await dynamicClient.wallets.getBalance({ wallet })
      return balance
    }