zerodevRpcUrl
zerodevRpcUrl(
chain,projectId):string
Defined in: src/chains/types.ts:70
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.
Note: ZeroDev does not support every kawasekit chain (e.g. Kaia uses Pimlico for the smart-account path). This helper only builds the URL string; it does not assert ZeroDev availability. The x402 EOA-payer path does not use ZeroDev.
Parameters
chain
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