# Blockscout ZKsync Batch List API

> Blockscout ZKsync Batch List API 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-12).

Retrieves a paginated list of ZKsync L2 batches with commit, prove, and execute transaction hashes and timestamps for a specified blockchain

## Facts

- Endpoint: GET https://api.blockscout.com/%7Bchain_id%7D/api/v2/zksync/batches
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/blockscout-zksync-batch-list-api-3792d63b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PbNfZoavSwFLskehCSknY

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-zksync-batch-list-api-3792d63b
```

Example prompt: Show me the latest ZKsync batches on chain ID 1101 — I want to see their batch numbers, statuses, and the commit and prove transaction hashes, paginated 25 at a time.

## When to prefer this

Use this endpoint when you specifically need ZKsync L2 batch-level data — including commit, prove, and execute lifecycle hashes — for a chain hosted on Blockscout. Prefer this over generic transaction lookup endpoints when the goal is rollup batch auditing, finality verification, or throughput analysis at the batch level.

## Known failure modes

- Invalid or unsupported chain_id returns an error or empty result
- Non-existent batch number returns empty items array
- Missing required path parameter chain_id causes a 404 or routing error
- Rate limiting or payment failure (402) if x402 payment not provided
- Network timeout on heavily loaded chains

## 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 JSON object containing an array of ZKsync batch records, each with batch number, status string, timestamp, transaction count, commit/prove/execute L1 transaction hashes and their respective timestamps. Also includes next_page_params for cursor-based 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": {
      "number": {
       "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,
    "status": "string",
    "timestamp": "string",
    "transactions_count": 0,
    "prove_transaction_hash": "string",
    "commit_transaction_hash": "string",
    "execute_transaction_hash": "string",
    "prove_transaction_timestamp": "string",
    "commit_transaction_timestamp": "string",
    "execute_transaction_timestamp": "string"
   }
  ],
  "next_page_params": {}
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/blockscout-zksync-batch-list-api-3792d63b/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)
