---
title: "GET /api/v1/celestia/l2BatchMetadata"
method: GET
path: "/api/v1/celestia/l2BatchMetadata"
tags: ["CelestiaService"]
---

# GET /api/v1/celestia/l2BatchMetadata

`GET /api/v1/celestia/l2BatchMetadata`

**Deprecation Notice:** Per instance endpoints will be deprecated soon in favor of PRO API endpoints. Please see the [PRO API reference page](https://docs.blockscout.com/devs/pro-api-responses-and-routes) for information.

## Query parameters

- `height` string, uint64
- `namespace` string
- `commitment` string

## Response `200`

A successful response.

- V1CelestiaL2BatchMetadata
  - `l2ChainId` integer
  - `l2BatchId` string
  - `l2StartBlock` string, uint64
  - `l2EndBlock` string, uint64
  - `l2BatchTxCount` integer
  - `l2BlockscoutUrl` string
  - `l1TxHash` string
  - `l1TxTimestamp` string, uint64
  - `l1ChainId` integer
  - `relatedBlobs` V1CelestiaBlobId[]
    - `height` string, uint64
    - `namespace` string
    - `commitment` string

## Other responses

- `default` — An unexpected error response.

---

[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)
