# Blockscout Scroll Batch Details by Number

> Blockscout Scroll Batch Details by Number 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-14).

Retrieves detailed information about a specific Scroll L2 batch by its batch number, including block range, transaction count, and commitment/confirmation transaction data

## Facts

- Endpoint: GET https://api.blockscout.com/%7Bchain_id%7D/api/v2/scroll/batches/%7Bnumber%7D
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/blockscout-scroll-batch-details-by-number-7b8a9172
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0ZYxxQMpvHZApZiB9u_P2

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-scroll-batch-details-by-number-7b8a9172
```

Example prompt: Can you pull up the details for Scroll batch number 42 using Blockscout — I want to see the block range it covers, the transaction count, and the L1 commitment and confirmation transaction hashes.

## When to prefer this

Use this endpoint when you need granular details about a specific Scroll rollup batch — including its exact block range, L1 commitment and confirmation transactions, and transaction count — rather than browsing a list of batches. Prefer this over generic blockchain explorers when working specifically with Scroll L2 and needing structured JSON data about rollup batch settlement.

## Known failure modes

- Batch number not found returns 404 or empty result
- Invalid chain_id returns an error or unexpected response
- Batch not yet committed to L1 may return null confirmation transaction fields
- Network or API unavailability returns 5xx error
- Malformed path parameters cause 400 bad request

## 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 JSON object containing the batch number, start and end block numbers covered by the batch, total transaction count, data availability container type, and the commitment transaction (hash, timestamp, block number on L1) and confirmation transaction (hash, timestamp, block number on L1) details.

## 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": {
      "number": {
       "type": "string"
      },
      "chain_id": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "number": 0,
  "end_block_number": 0,
  "data_availability": {
   "batch_data_container": "string"
  },
  "start_block_number": 0,
  "transactions_count": 0,
  "commitment_transaction": {
   "hash": "string",
   "timestamp": "string",
   "block_number": 0
  },
  "confirmation_transaction": {
   "hash": "string",
   "timestamp": "string",
   "block_number": 0
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/blockscout-scroll-batch-details-by-number-7b8a9172/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)
