---
title: "Get batch by number."
method: GET
path: "/{chain_id}/api/v2/zksync/batches/{batch_number_param}"
tags: ["zksync"]
---

# Get batch by number.

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

Retrieves detailed information about a ZkSync batch by its number.

## Path parameters

- `batch_number_param` integer, required
- `chain_id` string, required

## Response `200`

Batch info.

- ZkSyncBatch — ZkSync rollup batch - a group of rollup blocks settled together on the parent chain - with the corresponding parent-chain lifecycle data.
  - `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.
  - `end_block_number` integer, required — Last rollup block included in the batch.
  - `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.
  - `l1_gas_price` string, required — Parent-chain gas price observed for this batch, in wei.
  - `l1_transactions_count` integer, required — Number of transactions in the batch originating on the parent chain.
  - `l2_fair_gas_price` string, required — Rollup fair gas price for this batch, in wei.
  - `l2_transactions_count` integer, required — Number of transactions in the batch originating on the rollup.
  - `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.
  - `root_hash` string, required — State root hash committed for this batch on the parent chain.
  - `start_block_number` integer, required — First rollup block included in the batch.
  - `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.

## Other responses

- `404` — Not Found
- `422` — Unprocessable Entity

---

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