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

# block_results

> Get block results at a specified height.

### 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="block_results" required>
  JSON-RPC method name.
</ParamField>

<ParamField body="params" type="object" default={[1]} placeholder="[1]">
  The parameters for method block\_results: \[height].

  Positional parameters for <code>block\_results</code>:

  <ul>
    <li><code>params\[]</code>: Integer - height to return. If no height is provided, it will fetch the latest block.</li>
  </ul>
</ParamField>

### Returns

<ResponseField name="result" type="object">
  Block results information.
</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": "block_results",
      "params": [
        1
      ]
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json Success theme={null}
  {
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
      "height": "12",
      "txs_results": [
        {
          "code": "0",
          "data": "",
          "log": "not enough gas",
          "info": "",
          "gas_wanted": "100",
          "gas_used": "100",
          "events": [
            "..."
          ],
          "codespace": "ibc"
        }
      ],
      "begin_block_events": [
        {
          "type": "app",
          "attributes": [
            "..."
          ]
        }
      ],
      "end_block": [
        {
          "type": "app",
          "attributes": [
            "..."
          ]
        }
      ],
      "validator_updates": [
        {
          "pub_key": {
            "__truncated": true
          },
          "power": "300"
        }
      ],
      "consensus_params_updates": {
        "block": {
          "max_bytes": "22020096",
          "max_gas": "1000",
          "time_iota_ms": "1000"
        },
        "evidence": {
          "max_age": "100000"
        },
        "validator": {
          "pub_key_types": [
            "..."
          ]
        }
      }
    }
  }
  ```
</ResponseExample>
