> ## Documentation Index
> Fetch the complete documentation index at: https://www.dynamic.xyz/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Wallet Balance

<Card title="Recommended: JavaScript SDK for React Native" icon="react" color="#4779FE">
  While this SDK is still supported, we recommend using newer [JavaScript SDK](/docs/javascript/reference/react-native-quickstart), which is optimized for React Native, but also comes with a host of other benefits.
</Card>

```ts React Native theme={"system"}
    // 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;
    }
```
