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.

Before you can connect wallets or use chain-specific APIs, you add extensions to your Dynamic client. Each extension enables a different way to discover and connect wallets for a given chain. There are only two kinds of wallet: embedded (Dynamic-created, user-owned) and external (user brings their own, e.g. MetaMask, Phantom).

Prerequisites

Before this: create a Dynamic client (see Creating a Dynamic Client)

Chains

Add the extension for each chain you support. You need at least one extension per chain.

Addons

Addons extend a chain with extra capabilities (e.g. gas sponsorship). Add the chain extension first, then the addon.
AddonExtendsExtension page
ZeroDev (gasless / sponsored transactions)EVMAdding ZeroDev Extension

Order of setup

  1. Create your client - see Creating a Dynamic Client
  2. Add the extensions you need (e.g. addEvmExtension(), addZerodevExtension()).
  3. Initialize the client - see Initializing the Dynamic Client.
Extensions are typically added right after creating the client and before initialization. See each chain’s “Adding …” page for exact import and call order.
React: Add extensions in the same module where you create your client (e.g. dynamicClient.ts), after createDynamicClient and before initializeClient. Since this module is imported once at app startup, the extensions are registered before any component renders.

Next