1
Install Dependencies
Install core SDKs from Turnkey, Biconomy, and viem.
2
Configure .env
Store Turnkey credentials and signing key in environment variables.
3
Initialize Turnkey Client
Set up Turnkey client for key management and signing.
4
Create Wallet Client
Create a
viem
wallet client from the Turnkey account.5
Sign EIP-7702 Authorization
Sign the delegation message needed to enable smart account functionality on the EOA.
6
Create Nexus Smart Account
Override
accountAddress
to match the EOA — this activates EIP-7702 delegation.7
Create MEE Client
Connect to the Modular Execution Environment for gasless transaction execution.
8
Send Gasless Transaction
Set
delegate: true
and include authorization
to trigger execution via EIP-7702 delegation.9
Cross-Chain Execution (Optional)
Instructions can target multiple chains. Everything is handled by one user signature.
Summary
- Turnkey securely manages EOA keys
- Biconomy enables EIP-7702-based smart account delegation
- Set
accountAddress
to the EOA address for EIP-7702 flow - Use
delegate: true
+authorization
in the execution call - MEE handles gas payment using ERC-20s or sponsorship