Skip to content

zerodevRpcUrl

zerodevRpcUrl(chain, projectId): string

Defined in: src/chains/polygon.ts:46

Builds the ZeroDev v3 RPC URL for a chain.

In ZeroDev v3 a single URL serves as both the ERC-4337 bundler endpoint and the paymaster endpoint. Obtain a project ID from https://dashboard.zerodev.app.

Parameters

chain

KawaseChain

A kawasekit-supported chain.

projectId

string

ZeroDev project ID.

Returns

string

Fully-qualified ZeroDev v3 RPC URL.

Example

import { polygonAmoy, zerodevRpcUrl } from "kawasekit";
const rpc = zerodevRpcUrl(polygonAmoy, "my-zerodev-project-id");
// https://rpc.zerodev.app/api/v3/my-zerodev-project-id/chain/80002