Skip to main content

signEip7702Authorization

Signs an EIP-7702 authorization for ZeroDev kernel delegation. This function creates a signed authorization that allows a wallet to delegate its execution to the ZeroDev kernel contract. The signed authorization can then be passed to createKernelClientForWalletAccount via the eip7702Auth parameter. This is useful for singleUse MFA flows where you need to separate the authorization signing step from the transaction step.

Usage

Parameters

Returns

Promise<SignAuthorizationReturnType> - A promise that resolves to the signed EIP-7702 authorization.

Examples

Basic usage

With specific network

With singleUse MFA flow

This pattern is useful when you need to sign the authorization during an MFA step, then use it later for the transaction:
Last modified on February 10, 2026