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

# commit

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

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

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

  <ul>
    <li><code>params\[]</code>: The height to return.</li>
  </ul>
</ParamField>

### Returns

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

<ResponseExample>
  ```json Success theme={null}
  {
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
      "signed_header": {
        "header": {
          "version": {
            "__truncated": true
          },
          "chain_id": "cosmoshub-2",
          "height": "12",
          "time": "2019-04-22T17:01:51.701356223Z",
          "last_block_id": {
            "__truncated": true
          },
          "last_commit_hash": "21B9BC845AD2CB2C4193CDD17BFC506F1EBE5A7402E84AD96E64171287A34812",
          "data_hash": "970886F99E77ED0D60DA8FCE0447C2676E59F2F77302B0C4AA10E1D02F18EF73",
          "validators_hash": "D658BFD100CA8025CFD3BECFE86194322731D387286FBD26E059115FD5F2BCA0",
          "__truncated": true
        },
        "commit": {
          "height": "1311801",
          "round": 0,
          "block_id": {
            "__truncated": true
          },
          "signatures": [
            "..."
          ]
        }
      },
      "canonical": true
    }
  }
  ```
</ResponseExample>
