Install Dependencies
Configure .env
Initialize Turnkey Client
Create Wallet Client
viem
wallet client from the Turnkey account.Sign EIP-7702 Authorization
Create Nexus Smart Account
accountAddress
to match the EOA — this activates EIP-7702 delegation.Create MEE Client
Send Gasless Transaction
delegate: true
and include authorization
to trigger execution via EIP-7702 delegation.Cross-Chain Execution (Optional)
accountAddress
to the EOA address for EIP-7702 flowdelegate: true
+ authorization
in the execution call