> ## Documentation Index
> Fetch the complete documentation index at: https://docs.uniblock.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# zks_getL1BatchBlockRange

> Returns the range of blocks contained within a given batch.

### Parameters

<ParamField query="chainId" type="string" default="11124" required>
  Unique identifier for a blockchain network.
</ParamField>

<ParamField body="id" type="number" default={1} required>
  Request identifier used to match responses.
</ParamField>

<ParamField body="jsonrpc" type="string" default="2.0" required>
  JSON-RPC version.
</ParamField>

<ParamField body="method" type="string" default="zks_getL1BatchBlockRange" required>
  JSON-RPC method name.
</ParamField>

<ParamField body="params" type="object" default={[12345]} placeholder="[12345]" required>
  Returns the L2 block range included in the given L1 batch.

  Positional parameters for <code>zks\_getL1BatchBlockRange</code>:

  <ul>
    <li><code>params\[]</code>: The L1 batch number.</li>
  </ul>
</ParamField>

### Returns

<ResponseField name="result" type="array">
  Hexadecimal range of block numbers included in the batch.

  <Expandable title="items">
    <ResponseField name="items[]" type="string">
      A hexadecimal-encoded block number.
    </ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
  ```bash Curl theme={null}
  curl --request POST \
    --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=11124 \
    --header 'content-type: application/json' \
    --data '{
      "id": 1,
      "jsonrpc": "2.0",
      "method": "zks_getL1BatchBlockRange",
      "params": [
        12345
      ]
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json Success theme={null}
  {
    "jsonrpc": "2.0",
    "id": 1,
    "result": [
      "0x116fec",
      "0x117015"
    ]
  }
  ```
</ResponseExample>
