Skip to content
Fourohtwo

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

[linea] 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.

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

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

Example input

{
  "chain": "base"
}

More from Agent ToolkitProvider status