# Blockscout Scroll Batch Count

> Blockscout Scroll Batch Count is a paid API for AI agents from api.blockscout.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-16).

Returns the total count of Scroll L2 batches submitted to the Ethereum mainnet for a given chain

## Facts

- Endpoint: GET https://api.blockscout.com/%7Bchain_id%7D/api/v2/scroll/batches/count?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/blockscout-scroll-batch-count-62226bea
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_r_ufvR5i6WmXKhDRjOR4s

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-count-62226bea
```

Example prompt: How many Scroll L2 batches have been submitted to Ethereum so far? Pull the total batch count from Blockscout for the Scroll chain.

## When to prefer this

Choose this endpoint when you specifically need the total batch count for the Scroll L2 network as indexed by Blockscout. It is ideal for dashboards, monitoring scripts, or validation tools that need a simple scalar metric about Scroll rollup activity. Prefer this over general blockchain explorers when you need a programmatic, pay-per-call API response rather than a UI-based lookup.

## Known failure modes

- Invalid or unsupported chain_id returns an error or empty response
- Network timeout if Blockscout indexer is lagging
- 404 if the Scroll endpoint is unavailable or deprecated
- Payment failure (402) if x402 USDC payment is not provided or rejected
- Rate limiting or 429 if too many requests are made in quick succession

## 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 single integer representing the total number of Scroll L2 batches that have been submitted to the Ethereum L1. The response is a raw numeric value (e.g., 0 or any positive integer), with no additional metadata.

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": 0
}
```

## More

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