# Blockscout — List batches.

List Blockscout Scroll batches via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Blockscout, pass parameters such as Set, and retrieve structured data including batch number, commitment transaction reference, and confirmation transaction reference for batch explorer views, and rollup investigation, ready for production pipelines and AI agent automation.

Documentation: https://openany.si/blockscout/blockscout-list-batches-554efea2/b66c8156-b06b-47b0-b8a9-d2c1cd2bc239/
API ID: b66c8156-b06b-47b0-b8a9-d2c1cd2bc239
Provider: blockscout
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/blockscout/{chain_id}/api/v2/scroll/batches
Page update time: 2026-12-03T02:49:19.525Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0 / call
The published contract currently has no usage charge. Authentication and service limits still apply.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:49:18.810Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Blockscout Scroll Batches API

Provide chain\_id on scroll/batches. items contains batch numbers, block ranges and available commitment or confirmation transaction references. The continuation input is number, with optional items\_count of at least 1.

## What You Can Build

- **Batch explorer views**: Display the route-specific batch identity and returned references.
- **Rollup investigation**: Keep chain context and continuation state with each result page.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `items[].number` | Batch number |
| `items[].start_block_number` | Start of the block range |
| `items[].end_block_number` | End of the block range |
| `items[].commitment_transaction.hash` | Commitment transaction reference |
| `items[].confirmation_transaction.hash` | Confirmation transaction reference |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Blockscout — List batches. request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {
        "chain_id": {
          "type": "string",
          "description": "The ID of the blockchain"
        }
      },
      "required": [
        "chain_id"
      ]
    },
    "query": {
      "type": "object",
      "properties": {
        "items_count": {
          "type": "integer",
          "description": "Number of items per page",
          "minimum": 1
        },
        "number": {
          "type": "integer",
          "description": "Number for paging"
        }
      }
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "commitment_transaction": {
            "type": "object",
            "properties": {
              "block_number": {
                "type": "integer"
              },
              "hash": {
                "type": "string"
              },
              "timestamp": {
                "type": "string"
              }
            }
          },
          "confirmation_transaction": {
            "type": "object",
            "properties": {
              "block_number": {
                "type": "integer"
              },
              "hash": {
                "type": "string"
              },
              "timestamp": {
                "type": "string"
              }
            }
          },
          "data_availability": {
            "type": "object",
            "properties": {
              "batch_data_container": {
                "type": "string"
              }
            }
          },
          "end_block_number": {
            "type": "integer"
          },
          "number": {
            "type": "integer"
          },
          "start_block_number": {
            "type": "integer"
          },
          "transactions_count": {
            "type": "integer"
          }
        }
      }
    },
    "next_page_params": {
      "type": "object",
      "properties": {
        "number": {
          "type": "integer"
        }
      }
    }
  }
}
```

## Request example
Scenario: Schema template · Schema template (not executed)
```bash
curl \
  'https://api.openany.si/v1/agent-apis/blockscout/%3Cchain_id%3E/api/v2/scroll/batches' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Response illustration only. Placeholder values and unknown business fields are not recorded API results. Replace request placeholders before use.
Response template · not a real response · Documented HTTP 200
```json
{
  "items": [
    {
      "commitment_transaction": {
        "block_number": 0,
        "hash": "<hash>",
        "timestamp": "<timestamp>"
      },
      "confirmation_transaction": {
        "block_number": 0,
        "hash": "<hash>",
        "timestamp": "<timestamp>"
      },
      "data_availability": {
        "batch_data_container": "in_blob4844"
      },
      "end_block_number": 0,
      "number": 0,
      "start_block_number": 0,
      "transactions_count": 0
    }
  ],
  "next_page_params": {
    "number": 502655
  }
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Does this route use id for continuation?
No. The exposed continuation input is number.

### Are commitment and confirmation the same transaction?
They are separate response sections. Preserve their distinct hashes and timestamps.

### Can I request a list of chosen batch numbers?
This selected implementation exposes number for paging, not a batch_numbers array.

### Is a batch record alone sufficient to establish finality?
Keep the returned commitment and confirmation context rather than inferring finality from record existence.

### Which API key should I use?
Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

### Where can I check the current request price?
Check the pricing area for the selected implementation. Follow its billing unit and any request-dependent rules before sending the request.

## Available implementations
- blockscout: https://openany.si/blockscout/blockscout-list-batches-554efea2/b66c8156-b06b-47b0-b8a9-d2c1cd2bc239/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
