---
title: "List batches."
method: GET
path: "/{chain_id}/api/v2/zksync/batches"
tags: ["zksync"]
---

# List batches.

`GET /{chain_id}/api/v2/zksync/batches`

Retrieves a paginated list of ZkSync rollup batches, newest first.

## Path parameters

- `chain_id` string, required

## Query parameters

- `items_count` integer
- `number` integer

## Response `200`

List of batches.

- object
  - `items` ZkSyncBatchListItem[], required
    - `commit_transaction_hash` string, nullable, required — Hash of the parent-chain transaction that committed this batch. `null` until the commit transaction is observed.
    - `commit_transaction_timestamp` string, date-time, nullable, required — Timestamp of the parent-chain transaction that committed this batch. `null` until the commit transaction is observed.
    - `execute_transaction_hash` string, nullable, required — Hash of the parent-chain transaction that executed this batch. `null` until the execute transaction is observed.
    - `execute_transaction_timestamp` string, date-time, nullable, required — Timestamp of the parent-chain transaction that executed this batch. `null` until the execute transaction is observed.
    - `number` integer, required — Batch number on the rollup.
    - `prove_transaction_hash` string, nullable, required — Hash of the parent-chain transaction that proved this batch. `null` until the prove transaction is observed.
    - `prove_transaction_timestamp` string, date-time, nullable, required — Timestamp of the parent-chain transaction that proved this batch. `null` until the prove transaction is observed.
    - `status` 'Executed on L1' | 'Validated on L1' | 'Sent to L1' | 'Sealed on L2', required — Lifecycle status of the batch: * `Sealed on L2` - Batch is finalized on the rollup and no parent-chain lifecycle transaction has been observed yet. * `Sent to L1` - Commit transaction has been submitted on the parent chain. * `Validated on L1` - Prove transaction has been submitted on the parent chain. * `Executed on L1` - Execute transaction has been submitted on the parent chain.
    - `timestamp` string, date-time, required — Timestamp when the batch was sealed on the rollup.
    - `transactions_count` integer, required — Total number of transactions in the batch (parent-chain originated plus rollup originated).
  - `next_page_params` object, nullable, required

## Other responses

- `422` — Unprocessable Entity

---

[API](https://skmtc.net/blockscout/apis/blockscout-pro-api.md) · [All operations](https://skmtc.net/blockscout/apis/blockscout-pro-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/blockscout/blockscout-pro-api/revisions/59ac5466233b/schema)
