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://lex.glyphcall.com/op/block?number=latest"
Or one of your 3 free calls, no key:
curl "https://lex.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-17 20:14 UTC and refreshed every 15 minutes.
{
"chain": "Optimism",
"chainId": 10,
"number": 159673837,
"hash": "0x17c6fb42d32ee453f1e9e19e69c9726905c34145c00b77fb0901c7bdda1bbc03",
"timestamp": "2026-11-17T20:14:11.000Z",
"transactions": 36,
"gasUsed": "14265863",
"gasLimit": "40000000",
"baseFeeGwei": "0.000031455",
"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://lex.glyphcall.com/mcp