# Blockscout ZKSync Batch Details

> Blockscout ZKSync Batch Details 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-09).

Retrieves detailed information about a specific ZKSync batch on a given blockchain network, including transaction counts, gas prices, root hash, and L1 commit/prove/execute transaction hashes.

## Facts

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

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-details-66e987d4
```

Example prompt: Can you pull up the details for ZKSync batch number 1500 on the zkSync Era chain — I want to see the commit and prove transaction hashes, the root hash, and how many L1 and L2 transactions it included?

## When to prefer this

Use this endpoint when you need granular ZKSync-specific batch lifecycle data — including L1 commit, prove, and execute transaction hashes — that generic transaction lookup endpoints do not expose. Prefer this over generic block explorers when specifically investigating ZKSync rollup batch settlement, gas pricing across L1/L2, or verifying batch finality for a known batch number.

## Known failure modes

- Invalid chain_id returns an error or empty response
- Non-existent batch_number_param returns 404 or empty result
- Batch not yet proven or executed will show null fields for those transaction hashes
- Rate limiting may occur under high query volume
- Malformed batch_number_param (non-integer) causes input validation failure

## 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

A JSON object with the batch number, status string, root hash, timestamp, L1 gas price, L2 fair gas price, start and end block numbers, L1 and L2 transaction counts, and the commit, prove, and execute transaction hashes along with their respective timestamps.

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "number": 0,
  "status": "string",
  "root_hash": "string",
  "timestamp": "string",
  "l1_gas_price": "string",
  "end_block_number": 0,
  "l2_fair_gas_price": "string",
  "start_block_number": 0,
  "l1_transactions_count": 0,
  "l2_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"
 }
}
```

## More

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