EIP-7702
EIP-7702 support is currently in preview and only works on testnets that deployed support for the Ethereum Pectra upgrade, such as Ithaca Odyssey. Please keep this in mind when building with EIP-7702.
There are a few open items that we will address in the near future:
- The backend still persists a regular AA account address (instead of EOA), and currently the SDK UI just overrides it.
- Confirmation UI experience for 7702.
- Persist the authorization code for longer periods.
- Abstract the logic to work with regular Wallet Client transactions without the need to use the Kernel.
Our goal is to make this integration as seamless as possible. Please provide us with any feedback, and we will work closely with you to implement these needs.
EIP 7702 introduces a key update by decoupling the wallet address from a policy engine, enabling developers to upgrade an EOA into a smart account while keeping the same address. This means users can enjoy features like gasless transactions without switching wallets or spinning up new ones.
Features
- Gasless transctions and policies (defined within the Zerodev dashboard)
- Batch transactions
- Rhinestone EIP-7579 support (coming soon)
Setup for 7702 with a ZeroDev Contract
Step 1: Configure the Odyssey Testnet
- Enable Odyssey Testnet on Dynamic’s Chains
- Follow the regular ZeroDev setup instructions for Odyssey.
Step 2: Npm Install the preview packages
Step 3: Initialize the Dynamic Context Provider
To initialize pass the ZeroDevSmartWalletConnectors
to the WalletConnectors Array.
Step 4: Kernel Interaction
Currently to interact with the wallet, you will need to interact directly with the kernel.