Skip to main content
React Native
    // Using the RN client directly
    import { dynamicClient } from '<path-to-your-dynamicClient>';

    export const getPrimaryBalance = async () => {
      const wallet = dynamicClient.wallets.primary;
      if (!wallet) return null;
      const balance = await wallet.getBalance();
      return balance?.toString() ?? null;
    }