# Blockscout Optimism Batches Explorer

> Blockscout Optimism Batches Explorer is a paid API for AI agents from api.blockscout.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-11).

Retrieves a paginated list of Optimism L2 batch submissions for a specified chain, including L1 transaction hashes, block ranges, and timestamps

## Facts

- Endpoint: GET https://api.blockscout.com/%7Bchain_id%7D/api/v2/optimism/batches
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/blockscout-optimism-batches-explorer-665cb83b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gcXVNJeIp3wMREY88YpAO

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability blockscout-optimism-batches-explorer-665cb83b
```

Example prompt: Can you pull up the list of Optimism batch submissions for chain ID 10 on Blockscout — show me the first 25 batches with their L1 timestamps, transaction counts, and which L1 transaction hashes they were anchored in?

## When to prefer this

Use this endpoint when you specifically need Optimism L2 batch submission data — including L1 anchoring transactions, block ranges, and batch-level transaction counts — for a chain served by Blockscout. Prefer this over generic transaction lookups when investigating rollup sequencing, data availability, or batch audit trails on Optimism-compatible networks.

## Known failure modes

- Invalid or unsupported chain_id returns an error or empty response
- Batch ID out of range returns empty items array
- Rate limiting or payment failure (x402) blocks the request
- Malformed query parameters return a 400 error
- Chain not supporting Optimism batches returns no results

## How this service works

Explore crypto activities with Blockscout's multichain search. Find transactions, addresses, tokens, and dapps across top blockchain networks — your go-to explorer for cross-chain blockchain data

## Output

Returns a paginated list of Optimism batch objects, each containing: batch number, L1 timestamp of submission, count of transactions in the batch, L2 start and end block numbers covered, batch data container metadata, and the L1 transaction hashes where the batch was anchored. Also includes next_page_params for pagination.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "properties": {
      "chain_id": {
       "type": "string"
      }
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "id": {
       "type": "integer"
      },
      "items_count": {
       "type": "integer"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "items": [
   {
    "number": 0,
    "l1_timestamp": "string",
    "transactions_count": 0,
    "l2_end_block_number": 0,
    "batch_data_container": {},
    "l1_transaction_hashes": [
     "string"
    ],
    "l2_start_block_number": 0
   }
  ],
  "next_page_params": {}
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/blockscout-optimism-batches-explorer-665cb83b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.blockscout.com](https://www.zero.xyz/host/api.blockscout.com/llms.txt)
