Fetch a block header by number, hash, or "latest" on Ethereum, Base, Arbitrum, Optimism, P
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"}
3000 (raw units)
price
1
calls / 30d
1
unique payers
2026-08-28
updated
Provider
keyronne.com · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0xB86F95EF5FA904318Ea9Df3b59AdCe099b478fC4",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "3000",
"maxTimeoutSeconds": 60
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"body": {
"block": "latest",
"chain": "base"
},
"bodyType": "json",
"method": "POST",
"type": "http"
},
"output": {
"example": {
"baseFeeGwei": "0.004",
"chain": "base",
"gasUsed": 12000000,
"number": 48346708,
"time": "2026-07-08T14:30:00.000Z",
"timestamp": 1783535400,
"transactionCount": 142
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"properties": {
"body": {
"properties": {
"block": {
"description": "Block number, \"latest\" (default), or a 0x block hash."
},
"chain": {
"enum": [
"ethereum",
"base",
"arbitrum",
"optimism",
"polygon",
"bsc"
],
"type": "string"
}
},
"required": [
"chain"
],
"type": "object"
},
"bodyType": {
"enum": [
"json"
],
"type": "string"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"type": "object"
},
"output": {
"properties": {
"baseFeeGwei": {
"type": "string"
},
"chain": {
"type": "string"
},
"gasUsed": {
"type": "integer"
},
"hash": {
"type": "string"
},
"number": {
"type": "integer"
},
"time": {
"type": "string"
},
"timestamp": {
"type": "integer"
},
"transactionCount": {
"type": "integer"
}
},
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
}
}Use it
curl
curl "https://keyronne.com/api/chain-block" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://keyronne.com/api/chain-block");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://keyronne.com/api/chain-block")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/822.json, and this resource appears in /discovery/resources and /discovery/search.