> For the complete documentation index, see [llms.txt](/llms.txt).

# `zks_getL1BatchBlockRange`

Returns the range of blocks contained within a given batch.

## Parameters[​](#parameters "Direct link to Parameters")

- `batch`: (integer) [_Required_] The layer 1 batch number.

## Response[​](#response "Direct link to Response")

The range of blocks contained within the specified batch. The range is given by the beginning/end block numbers in hexadecimal.

## Example[​](#example "Direct link to Example")

Replace `<YOUR-API-KEY>` with an API key from your [Infura dashboard](https://app.infura.io/).

### Request[​](#request "Direct link to Request")

- curl
- WSS

```
curl https://zksync-mainnet.infura.io/v3/<YOUR-API-KEY> \
  -X POST \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc": "2.0", "id": 1, "method": "zks_getL1BatchBlockRange", "params": [12345]}'

```

```
wscat -c wss://zksync-mainnet.infura.io/ws/v3/<YOUR-API-KEY> -x '{"jsonrpc": "2.0", "id": 1, "method": "zks_getL1BatchBlockRange", "params": [12345]}'

```

### Response[​](#response-1 "Direct link to Response")

- JSON

```
{
  "jsonrpc": "2.0",
  "result": ["0x116fec", "0x117015"],
  "id": 1
}

```
