While this SDK is still supported, we recommend using newer JavaScript SDK, which is optimized for React Native, but also comes with a host of other benefits.
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; }
Last modified on July 24, 2026
Was this page helpful?
⌘I
Assistant
Responses are generated using AI and may contain mistakes.