---
title: "Batch by its number."
method: GET
path: "/{chain_id}/api/v2/optimism/batches/{number}"
tags: ["optimism"]
---

# Batch by its number.

`GET /{chain_id}/api/v2/optimism/batches/{number}`

Retrieves batch detailed info by the given number.

## Path parameters

- `number` string, required
- `chain_id` string, required

## Response `200`

Batch detailed info.

- OptimismBatchDetailed, nullable — Optimism Batch struct.
  - `batch_data_container` 'in_blob4844' | 'in_celestia' | 'in_eigenda' | 'in_alt_da' | 'in_calldata', nullable, required
  - `blobs` object[]
    - `cert` string — EigenDA cert raw bytes.
    - `commitment` string — Celestia or Alt-DA blob commitment.
    - `hash` string — EIP-4844 blob hash.
    - `height` integer — Celestia block height.
    - `l1_timestamp` string, date-time, required — L1 transaction timestamp bound with the blob.
    - `l1_transaction_hash` string, required — L1 transaction hash bound with the blob.
    - `namespace` string — Celestia blob namespace.
  - `l1_timestamp` string, date-time, required
  - `l1_transaction_hashes` FullHash[], required
  - `l2_end_block_number` integer, required
  - `l2_start_block_number` integer, required
  - `number` integer, required
  - `transactions_count` integer, required

## Other responses

- `404` — Not Found
- `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)
