Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.dynamic.xyz/docs/llms.txt

Use this file to discover all available pages before exploring further.

React Native
    // Requires setting up the RN Viem extension
    // See: /react-native/wallets/viem
    import { dynamicClient } from '<path-to-your-dynamicClient>'; // extended with ViemExtension

    export const signMessage = async () => {
      const wallet = dynamicClient.wallets.primary;
      if (!wallet) return;

      const walletClient = dynamicClient.viem.createWalletClient({ wallet });
      const signature = await walletClient.signMessage({ message: 'example' });
      console.log('signature', signature);
    }