This guide is currently React only.
Dashboard Setup
1
Enable zkSync Chain
Navigate to the EVM section of your Dynamic Dashboard and toggle on a zkSync enabled chain, then click Save.
When using zkSync with global wallets, ensure that the zkSync enabled chain is the only one selected.
2
Configure Account Abstraction
Go to the Account Abstraction section and:
- Enter the optional
factoryAddress
,paymasterAddress
andsessionKeyAddress
(if available) - Save the settings
- Enable the toggle next to the ZkSync section
Make sure to test your configuration on testnet before deploying to mainnet.
3
Configure Smart Contract Wallet Distribution
Choose your SCW distribution strategy:Wallet Level Configuration:
- All Wallets: Issue SCWs to all connected wallets (requires custom UI handling)
- Embedded Wallets Only: Issue SCWs only to Dynamic’s embedded wallets
- All Users: Issue SCWs to all users (existing users get SCWs on next login)
- New Users Only: Issue SCWs only to newly registered users
For most applications, we recommend starting with Embedded Wallets Only and New Users Only to ensure a smooth rollout.
4
Configure Wallet Display Options
Choose how users interact with their wallets:
- Show Smart Wallet Only: Users interact directly with the smart wallet
- Show Smart Wallet & Signer: Users can switch between the smart wallet and signer
Installation & Setup
Install the required packages:Then configure your application:
Use the latest compatible versions of the Dynamic SDK and provider packages. Grab your environment ID from the Dynamic Dashboard under Developer > SDK & API Keys.
ZKsync Connector Methods
The ZKsync connector provides several key methods for interacting with smart accounts: