> ## 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_getL1BatchDetails

> Returns data pertaining to a given L1 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_getL1BatchDetails" required>
  JSON-RPC method name.
</ParamField>

<ParamField body="params" type="object" default={[12345]} placeholder="[12345]" required>
  Positional parameters for <code>zks\_getL1BatchDetails</code>:

  <ul>
    <li><code>params\[]</code>: The layer 1 batch number to query details for.</li>
  </ul>
</ParamField>

### Returns

<ResponseField name="result" type="object">
  The JSON-RPC result.

  <Expandable title="properties">
    <ResponseField name="baseSystemContractsHashes" type="object">
      <Expandable title="properties">
        <ResponseField name="bootloader" type="string" />

        <ResponseField name="default_aa" type="string" />
      </Expandable>
    </ResponseField>

    <ResponseField name="commitTxHash" type="string" />

    <ResponseField name="committedAt" type="string" />

    <ResponseField name="executeTxHash" type="string" />

    <ResponseField name="executedAt" type="string" />

    <ResponseField name="l1BatchNumber" type="integer" />

    <ResponseField name="l1GasPrice" type="integer" />

    <ResponseField name="l1TxCount" type="integer" />

    <ResponseField name="l2FairGasPrice" type="integer" />

    <ResponseField name="l2TxCount" type="integer" />

    <ResponseField name="number" type="integer" />

    <ResponseField name="operatorAddress" type="string" />

    <ResponseField name="proveTxHash" type="string" />

    <ResponseField name="provenAt" type="string" />

    <ResponseField name="rootHash" type="string" />

    <ResponseField name="status" type="string" />

    <ResponseField name="timestamp" type="integer" />
  </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_getL1BatchDetails",
      "params": [
        12345
      ]
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json Success theme={null}
  {
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
      "baseSystemContractsHashes": {
        "bootloader": "0x010007793a328ef16cc7086708f7f3292ff9b5eed9e7e539c184228f461bf4ef",
        "default_aa": "0x0100067d861e2f5717a12c3e869cfb657793b86bbb0caa05cc1421f16c5217bc"
      },
      "commitTxHash": "0xd045e3698f018cb233c3817eb53a41a4c5b28784ffe659da246aa33bda34350c",
      "committedAt": "2023-03-26T07:21:21.046817Z",
      "executeTxHash": "0xbb66aa75f437bb4255cf751badfc6b142e8d4d3a4e531c7b2e737a22870ff19e",
      "executedAt": "2023-03-27T07:44:52.187764Z",
      "l1BatchNumber": 12345,
      "l1GasPrice": 20690385511,
      "l1TxCount": 0,
      "__truncated": true
    }
  }
  ```
</ResponseExample>
