Skip to content
Fourohtwo

keyronne.com/api/chain-block

Fetch a block header by number, hash, or "latest" on Ethereum, Base, Arbitrum, Optimism, Polygon, or BNB Chain: timestamp, miner, gas used/limit, base fee, transaction count, size. Public JSON-RPC, no API keys. POST a JSON body like: {"chain":"base","block":"latest"}

BaseUnchecked
POSThttps://keyronne.com/api/chain-block

UptimeNot checked yet

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://keyronne.com/api/chain-block", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"block":"latest","chain":"base"}),
});
console.log(await res.json());

Example input

{
  "block": "latest",
  "chain": "base"
}