Skip to content
Fourohtwo

agent-data.centorprat.workers.dev/chain/chain-id

Chain id straight from the node, plus whether it matches the chain name you asked for. The cheapest way to confirm you are talking to the chain you think you are, which is the most common cause of a transaction that 'vanishes'.

BasePolygonSolanaAnswering
GEThttps://agent-data.centorprat.workers.dev/chain/chain-id

Uptime66.7% of 3 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agent-data.centorprat.workers.dev/chain/chain-id?chain=base");
console.log(await res.json());

Example input

{
  "chain": "base"
}

More from Agent ToolkitProvider status