Skip to main content

createKernelClientForWalletAccount

Creates a ZeroDev KernelClient instance for a given smart wallet account. The KernelClient allows you to send user operations and interact with the smart account.

Usage

Parameters

Returns

Promise<KernelClient> - A promise that resolves to a ZeroDev KernelClient instance.

Examples

With gas sponsorship (default)

Without gas sponsorship

With custom gas token (ERC20)

With specific network

With pre-signed EIP-7702 authorization

This is useful for singleUse MFA flows where you need to separate the authorization signing step from the transaction step:

React

Create the kernel client inside a button handler or useEffect — it should not be created at module level as it depends on runtime wallet state:
Last modified on June 24, 2026