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

## 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-api.md) · [All operations](https://skmtc.net/blockscout/apis/blockscout-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/blockscout/blockscout-api/revisions/0f86c8091304/schema)
