API & MCP
Everything a person can do on Rollup Batch Explorer, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://rollupbatchexplorer.usefulweb.site/api/v1/calculate– run Rollup Batch ExplorerGET https://rollupbatchexplorer.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Rollup Batch Explorer
For a Base, OP Mainnet or Arbitrum One transaction or block, shows whether it is only sequencer-confirmed (unsafe), already posted to Ethereum in a batch (safe) or settled on finalized Ethereum data (finalized) — and, for Arbitrum, the batch number that contains it. It also scans the latest Ethereum blocks for rollup batch transactions (OP Stack batch inboxes and the Arbitrum SequencerInbox), counting blobs, blob gas and the fee each batch paid, and explains the documented withdrawal windows.
| Field | Type | Default | Description |
|---|---|---|---|
mode | select (lookup, pasted) | "lookup" | What do you have? |
rollup | select (base, optimism, arbitrum) | "base" | Rollup |
l2Tx | text | — | L2 transaction hash (optional) |
l2Block | text | — | L2 block number (optional). Used when no transaction hash is given; defaults to the latest block. |
l1Blocks | integer | 5 | Recent Ethereum blocks to scan for batches |
l1BlockJson | textarea | — | L1 block JSON (offline). eth_getBlockByNumber(…, true) result (or an array of them), optionally with a "receipts" array for exact costs. |
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://rollupbatchexplorer.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
rollup_batch_explorer - Local stdio connector:
node src/mcp-stdio.ts --tool=rollup-batch-explorer
{
"mcpServers": {
"rollup-batch-explorer": { "type": "http", "url": "https://rollupbatchexplorer.usefulweb.site/mcp" }
}
}