Skip to content
Fourohtwo

agent-utils.run402.com/v1/evm/block

Block header facts on Ethereum, Base, Arbitrum, Optimism, Polygon or BSC: by number, latest, or by timestamp (unix or ISO; returns the last block at or before that time via binary search). Number, hash, time, tx count, gas used, base fee. $0.002 per call. Fair input: bad/missing params after payment return the example result + inputSchema, never an error.

BaseBase SepoliaAnswering
GEThttps://agent-utils.run402.com/v1/evm/block

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-utils.run402.com/v1/evm/block?chain=base&timestamp=2026-01-01T00%3A00%3A00Z");
console.log(await res.json());

Example input

{
  "chain": "base",
  "timestamp": "2026-01-01T00:00:00Z"
}