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

# blockchain

> Get block headers for minHeight &lt;= height &lt;= maxHeight.

### Parameters

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

<ParamField body="params" type="object" default={[1,100]} placeholder="[1,100]" required>
  The parameters for method blockchain: \[minHeight, maxHeight].

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

  <ul>
    <li><code>params\[0]</code>: Integer - minHeight to return.</li>
    <li><code>params\[1]</code>: Integer - maxHeight to return.</li>
  </ul>
</ParamField>

### Returns

<ResponseField name="result" type="object">
  The block headers.
</ResponseField>

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

<ResponseExample>
  ```json Success theme={null}
  {
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
      "last_height": "1276718",
      "block_metas": [
        {
          "block_id": {
            "__truncated": true
          },
          "block_size": 1000000,
          "header": {
            "__truncated": true
          },
          "num_txs": "54"
        }
      ]
    }
  }
  ```
</ResponseExample>
