ZeroDev
Learn how to integrate ZeroDev’s embedded AA wallet with Para Signer
Introduction
ZeroDev is an embedded AA wallet, currently powering many AA wallets deployed on EVM chains. ZeroDev is known for its large AA feature set, including not just gas sponsoring, but also session keys, recovery, multisig, and more.
Installation
Install the required packages:
Connecting ZeroDev to a Para Signer
Required Imports
Start by importing all the necessary packages:
Create a custom sign message function
When working with Para MPC and AA providers, we need a function to handle the V value in signatures so that transactions can be validated correctly. This is due to the way Para handles signatures in its multi-party computation (MPC) setup. Below is the implementation of the customSignMessage
function:
Set up Para with Viem
Set up your Para account and Viem client:
Ensure you override the signMessage
method of the LocalAccount
instance with the customSignMessage
function. This is crucial for ensuring that the V value in the signature is handled correctly when sending transactions through ZeroDev.
Set up ZeroDev kernel and validator
Configure the ZeroDev kernel account with the ECDSA validator:
Set up ZeroDev paymaster and kernel client
Create the paymaster and kernel client to handle transactions:
For more information on setting up RPCs and managing your ZeroDev project, refer to the ZeroDev documentation.
Send transactions with the kernel client
Now you can use the kernel client to send user operations:
The examples above assume that you have already initialized the Para object and created a wallet. For more details on Para initialization, refer to the Para SDK documentation.
Example
For an example of using ZeroDev with Para Signer, you can refer to the following GitHub repository: