For the complete documentation index, see llms.txt. This page is also available as markdown.

ZeroDev Presets

Archived version

You are viewing @zerodev/sdk v5.3.x documentation. View the latest documentation.

ECDSA Validator

To set up a Kernel account using ECDSA for validation (mimicking EOAs):

import { createEcdsaKernelAccountClient } from "@zerodev/presets/zerodev"
import { polygonMumbai } from "viem/chains"

const kernelClient = await createEcdsaKernelAccountClient({
    // required
    chain: polygonMumbai,
    projectId: ZERODEV_PROJECT_ID,
    signer: SIGNER,

    // optional
    provider: "PIMLICO", // defaults to a recommended provider
    index: BigInt(1), // defaults to 0
    paymaster: 'SPONSOR', // defaults to SPONSOR
})

is a boolean flag that determines whether ZeroDev will use the sponsoring paymaster.

On this page