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

# eth_getRootHash

> Returns the root hash of a specified block range. Useful for verifying block inclusion and consensus consistency over a range.

### Parameters

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

<ParamField body="params" type="object" default={[1000,1032]} placeholder="[1000,1032]" required>
  Parameters: \[fromBlock, toBlock]

  Positional parameters for <code>eth\_getRootHash</code>:

  <ul>
    <li><code>params\[0]</code>: The starting block number (inclusive).</li>
    <li><code>params\[1]</code>: The ending block number (inclusive).</li>
  </ul>
</ParamField>

### Returns

<ResponseField name="result" type="string">
  Hex-encoded root hash covering the specified block range. Example: <code>"0x67518d9fc6bf9ff886ba1a4e932a0d0a8a1318b3f300518773aaf2210410cf73"</code>.
</ResponseField>

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

<ResponseExample>
  ```json Success theme={null}
  {
    "jsonrpc": "2.0",
    "id": 1,
    "result": "0x67518d9fc6bf9ff886ba1a4e932a0d0a8a1318b3f300518773aaf2210410cf73"
  }
  ```
</ResponseExample>
