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.Order of setup
- Create your client - see Creating a Dynamic Client
- Add the extensions you need (e.g.
addEvmExtension(),addZerodevExtension()). - Initialize the client - see Initializing the Dynamic Client.
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
- Initializing the Dynamic Client — Initialize after adding extensions.
- Connecting and Verifying a Wallet — Use the connected wallet in your app.