82trust / 100

Chain Block

by EVM Block in Onchain & crypto

x402 APIPassing, checked 48 min ago

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"}

POST https://keyronne.com/api/chain-block

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
165 ms typical, 165 ms slowest 5%
Last check
48 min ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://keyronne.com/api/chain-block" \
  -H "content-type: application/json" \
  -d '{"block":"latest","chain":"base"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fkeyronne.com%2Fapi%2Fchain-block
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"
}

Example output

{
  "baseFeeGwei": "0.004",
  "chain": "base",
  "gasUsed": 12000000,
  "number": 48346708,
  "time": "2026-07-08T14:30:00.000Z",
  "timestamp": 1783535400,
  "transactionCount": 142
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
48 min agoPassed402165 ms$0.003
4 h agoPassed402257 ms$0.003
9 h agoPassed40248 ms$0.003