Chain ID (EIP-155)
The EIP-155 chain ID for any supported network via eth_chainId — the read multi-chain agents make to confirm which chain an RPC is on before signing. Across Base, Ethereum, Optimism, Arbitrum, Polygon, Gnosis. Free public RPC; 6 chains vs onesource's Ethereum-only coverage. List your own x402 service on bazaar.agentexchange.work/listings: 1 USD, 30 days, live at once, no account.
- Price per call
- $0.001
- Chain
- Base
- Method
- GET
- Paid calls · 30 days
- 3
Call it from code
This API is run by its own provider and paid directly through x402. We list it so you can find it; we don't route or hold the payment.
import { x402Client, wrapFetchWithPayment } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
const client = new x402Client();
registerExactEvmScheme(client, { signer: agentAccount });
const pay = wrapFetchWithPayment(fetch, client);
const res = await pay("https://x402-agent-store.rileycraig14.workers.dev/chain/chain-id", { method: "GET" });
console.log(await res.json());https://x402-agent-store.rileycraig14.workers.dev/chain/chain-id