---
title: "zks_getL1BatchBlockRange"
method: POST
path: "/zks_getL1BatchBlockRange"
tags: ["ZKSync API"]
---

# zks_getL1BatchBlockRange

`POST /zks_getL1BatchBlockRange`

Returns the range of blocks contained within a specified L1 batch. The range is provided by the beginning and end block numbers in hexadecimal.

## Request body

- object
  - `jsonrpc` string, required — JSON-RPC version
  - `method` string, required — The method to call
  - `params` unknown[], required — Call parameters
    - unknown
  - `id` integer, required — Request identifier

## Response `200`

Returns the range of blocks in the batch

- object
  - `jsonrpc` string
  - `id` integer
  - `result` string[] — Array with two elements: the first and the last block number (inclusive) of the requested batch

---

[API](https://skmtc.dev/abs/apis/abstract-json-rpc-api.md) · [All operations](https://skmtc.dev/abs/apis/abstract-json-rpc-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/abs/abstract-json-rpc-api/revisions/65e951da6380/schema)
