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

Pimlico

Archived version

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

Pimlico is a leading AA infra provider with a wide coverage of networks.

Note that ZeroDev is built on top of Pimlico's Permissionless SDK, so if you were already using Permissionless, it's easy to switch to ZeroDev to take full advantage of the power of Kernel.

Using Pimlico bundler

Simply specify Pimlico's bundler RPC when constructing a Kernel client:

import { createKernelAccountClient } from "@zerodev/sdk"
import { http } from "viem"

const kernelClient = createKernelAccountClient({
  // other options...

  transport: http('PIMLICO_BUNDLER_RPC'),
})

Using Pimlico paymaster

Construct the Kernel client with Pimlico's paymaster client:

import { http } from "viem"
import { polygonMumbai } from 'viem/chains'
import { createKernelAccountClient } from "@zerodev/sdk"
import { createPimlicoPaymasterClient } from "permissionless/clients/pimlico"

const kernelClient = createKernelAccountClient({
  account,
  chain: polygonMumbai,
  transport: http('PIMLICO_BUNDLER_RPC'),
  sponsorUserOperation: async ({ userOperation }) => {
    const paymaster = createPimlicoPaymasterClient({
      chain: polygonMumbai,
      transport: http('PIMLICO_PAYMASTER_RPC'),
    })
    return paymaster.sponsorUserOperation({
      userOperation
    })
  }
})

On this page