The package that gives access to an Extension that allows integrating ZeroDev Kernel to our client.

Functions

ZeroDevExtension method

ZeroDevExtension(): Extension<IZeroDevExtension>

A method that, when passed to the client instance, injects the following modules into it:

zeroDev module

Provides method to create zerodev kernel client.

PropertyTypeDescription
createKernelClient(args: CreateKernelAccountClientArgs) => Promise<KernelAccountClient>Creates the ZeroDev Kernel client for a wallet.

Types

IZeroDevExtension type

import { KernelAccountClient } from "@zerodev/sdk/clients";

type CreateKernelAccountClientArgs = {
  wallet: Wallet;
  bundlerProvider?: BundlerProvider;
  bundlerRpc?: string;
  paymasterRpc?: string;
  paymaster?: PaymasterType;
};

type IZeroDevExtension = {
  zeroDev: {
    createKernelClient: (
      args: CreateKernelAccountClientArgs
    ) => ReturnType<KernelAccountClient>;
  };
};