Optimism block number

$0.002 per call · failed calls are never charged · no account needed: a card key or USDC

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.

Run it free (3 free calls) Buy credits by card (from $1) Example result (JSON)

Try it with your own inputs

Block number, or 'latest' (default)

Uses one of your 3 free calls. Nothing is charged, and a call that fails is not counted.

Inputs

NameTypeDescription
numberstringBlock number, or 'latest' (default)

Request

Over HTTP, with a card key from /credits:

curl -H "Authorization: Bearer adt_…" "https://mcp.glyphcall.com/op/block?number=latest"

Or one of your 3 free calls, no key:

curl "https://mcp.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:22 UTC and refreshed every 15 minutes.

{
  "chain": "Optimism",
  "chainId": 10,
  "number": 159629090,
  "hash": "0xc5b637a3782ec6b6c0efcc2d12bb05ada7c3d94ced61b4b3672f203444746c42",
  "timestamp": "2026-11-16T19:22:37.000Z",
  "transactions": 37,
  "gasUsed": "14523648",
  "gasLimit": "40000000",
  "baseFeeGwei": "0.000029795",
  "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://mcp.glyphcall.com/mcp

Related tools