Optimism block number
Latest block number and block details on Optimism, or any block by decimal number: hash, timestamp, transaction count, gas used and limit, base fee in gwei and producer. Use for timestamps and confirmation counts; for current fees use op_gas. A block that does not exist yet returns 422, uncharged.
Inputs
| Name | Type | Description |
|---|---|---|
number | string | Block number, or 'latest' (default) |
Request
Over HTTP, with a card key from /credits:
curl -H "Authorization: Bearer adt_…" "https://api.glyphcall.com/op/block?number=latest"
Or one of your 3 free calls, no key:
curl "https://api.glyphcall.com/op/block?number=latest&trial=1"
Without a key, the same URL answers 402 Payment Required with x402 and MPP terms, so an agent with a wallet pays per call in USDC (Base, Polygon, Arbitrum or Solana over x402; Base or Tempo over MPP) and retries.
Live result
The real answer to the request above, read 2026-11-16 19:02 UTC and refreshed every 15 minutes.
{
"chain": "Optimism",
"chainId": 10,
"number": 159628487,
"hash": "0xffa428404fb47126be2b81f47de254b5369e567429ce9a738bf51a3902d18b03",
"timestamp": "2026-11-16T19:02:31.000Z",
"transactions": 41,
"gasUsed": "28929774",
"gasLimit": "40000000",
"baseFeeGwei": "0.000029422",
"miner": "0x4200000000000000000000000000000000000011"
}
From an AI agent (MCP)
Add the MCP server to Claude, Cursor or any MCP client. This tool is op_block, and the first 25 successful calls are free:
https://api.glyphcall.com/mcp