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.
2
Configure Account Abstraction
Go to the Account Abstraction section and:
- Enter the optional
factoryAddress,paymasterAddressandsessionKeyAddress(if available) - Save the settings
- Enable the toggle next to the ZkSync section
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:- npm
- yarn
- pnpm
- bun
ZKsync Connector Methods
The ZKsync connector provides several key methods for interacting with smart accounts:getAccountAbstractionProvider
Returns a smart account client or session client based on the provided parameters. This method is the primary way to interact with zkSync smart accounts.getWalletClient
Creates a wallet client with custom transport for RPC methods.Transaction Examples
Basic Transaction
Send a simple transaction using the account abstraction provider:Create a session
Create a session in order to make transactions on the users behalfSession-Based Transaction
Send a transaction using the session client from getAccountAbstractionProvider:
Send a transaction using the session client (w/o getAccountAbstractionProvider)
Message Signing
Sign messages using the smart account:Next Steps
- Explore Global Wallets integration with zkSync