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

# getBlockProduction

> Returns recent block production information from the current or previous epoch.

### Parameters

<ParamField query="chainId" type="string" default="solana-devnet" 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="getBlockProduction" required>
  JSON-RPC method name.
</ParamField>

<ParamField body="params" type="object" default={[{}]} placeholder="[{}]">
  Parameters for method getBlockProduction: \[config]

  Positional parameters for <code>getBlockProduction</code>:

  <ul>
    <li><code>params\[]</code>: Optional configuration object for block production query.</li>
  </ul>
</ParamField>

### Returns

<ResponseField name="result" type="object">
  Block production information for the specified range and commitment level.
</ResponseField>

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

<ResponseExample>
  ```json Success theme={null}
  {
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
      "context": {
        "slot": 9887
      },
      "value": {
        "byIdentity": {
          "85iYT5RuzRTDgjyRa3cP8SYhM2j21fj7NhfJ3peu1DPr": [
            "..."
          ]
        },
        "range": {
          "firstSlot": 0,
          "lastSlot": 9887
        }
      }
    }
  }
  ```
</ResponseExample>
