Implement cross-chain contract calls using EIP-7702 delegation
signAuthorization
support (viem)signAuthorization
method:
EIP-7702 enables EOAs to delegate execution to smart contracts. Delegation is required on source chains (for spending) and destination chains (only for contract calls).
signAuthorization
method is part of viem’s EIP-7702 support. It signs an authorization that allows your EOA to delegate execution to the Kernel v3.3 smart contract. Other wallet providers like Privy also support this method.prepare-call-quote
- both source and destination chains.type: "kernel-v3.3-ecdsa"
and deploymentType: "EIP7702"
accountAddress
and signerAddress
must be the same EOA addresssignMessage()
) not typed datasignedTuple.yParity
is not nullAspect | Kernel v3.3 (EIP-7702) | Role-Based |
---|---|---|
Signing method | UserOperation hash via signMessage() | Typed data via signTypedData() |
Address | Same as EOA | Predicted new address |
EntryPoint | Requires 0.7 | Not applicable |
Delegation | Required on spending chains | Not applicable |