Enabling MegaEth
Dynamic supports MegaEth from Day 0, simply enable it in the EVM networks section of the dashboard and you’re good to go! We also support 7702 by default on MegaEth in partnership with Zerodev, learn how to enable that below.Setup MegaEth for 7702
1
ZeroDev Account
Sign up for a free account at https://dashboard.zerodev.app/ and create a project, configure your project name and network (please use MegaEth for this example) and copy your new ZeroDev project ID.
2
Enable in Dynamic
In the EVM section of your Dynamic Dashboard, toggle on MegaEth and click Save.Now, go to the Account Abstraction section, enable ZeroDev and paste in your ZeroDev project id.
3
Choose who gets a SCW
On the same configuration page as the step above, you’ll see there are two different types of configuration for issuing smart contract wallets (SCWs) in Dynamic - the wallet level and the user level.
- Wallet level
- User level
4
Choose if your users see both the signer and smart wallet
On the same configuration page as the 2 steps above, you’ll see there is a setting for how the Dynamic SDK treats the signer and the smart wallet - only the smart wallet or both the smart wallet and signer.
- Show Smart Wallet Only
- Show Smart Wallet & Signer
5
Enable Dynamic-powered embedded wallets + Email
Back in your Dynamic Dashboard, go to the Embedded Wallets section and enable Dynamic-powered embedded wallets.Lastly, in the Log in & User Profile section, enable Email sign up (optionally, enable social sign up and configure oauth)
6
Install the packages in your app
7
Initialize the Dynamic Context Provider
Pass
ZeroDevSmartWalletConnectors
along with EthereumWalletConnectors to the WalletConnectors Array of your context provider.8
Kernel Interaction
Currently to interact with the wallet, you will need to interact directly with the kernel, we will do this in a new component: