Skip to content
Fourohtwo

agent-data.centorprat.workers.dev/chain/block/base

[bsc-mainnet] Current block height and gas price for an EVM chain (base, ethereum, polygon, arbitrum, optimism, bsc), fresh to 3 seconds. For an agent that is about to transact or needs to timestamp something: one call, no account, no key. Returns chainId, blockNumber, gasPriceWei and gwei. Cached 3 s so the tip is real, answered in ~350 ms. Returns one integer: the block height. No account and no

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

Uptime100% of 2 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/block/base?chain=base");
console.log(await res.json());

Example input

{
  "chain": "base"
}

Price changes

  • Dec 1, 20260.003 → 0.002

More from Agent ToolkitProvider status