> ## Documentation Index
> Fetch the complete documentation index at: https://chainstack-docs-polygon-flatcalltracer-getproof.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# bor_getRootHash | Polygon

> Polygon API method bor_getRootHash returns the root hash for a given block range, used for checkpointing to Ethereum. On Polygon via Chainstack.

Polygon API method `bor_getRootHash` returns the root hash computed over a given block range. Bor uses these range root hashes when checkpointing Polygon state to Ethereum.

## Parameters

* `from` — the start block number (integer).
* `to` — the end block number (integer). The range is capped by the node's configured limit.

## Response

* `result` — the root hash for the requested block range, as a hexadecimal string without the `0x` prefix.

```json theme={"system"}
{ "jsonrpc": "2.0", "id": 1, "result": "684c2efeba6e8b27d1fd5082424107a53dfc16f54731908ba96c0c76c598b46a" }
```

## Use case

`bor_getRootHash` is used by checkpoint and bridge tooling to reconstruct or verify the block-range root hashes that Bor submits to Ethereum.


## OpenAPI

````yaml openapi/polygon_node_api/bor/bor_getRootHash.json POST /a9bca2f0f84b54086ceebe590316fff3
openapi: 3.0.0
info:
  title: bor_getRootHash example
  version: 1.0.0
  description: Get the root hash for a given block range.
servers:
  - url: https://nd-828-700-214.p2pify.com
security: []
paths:
  /a9bca2f0f84b54086ceebe590316fff3:
    post:
      tags:
        - Ethereum Operations
      summary: bor_getRootHash
      operationId: bor_getRootHash
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - jsonrpc
                - method
                - id
                - params
              properties:
                jsonrpc:
                  type: string
                  default: '2.0'
                method:
                  type: string
                  default: bor_getRootHash
                id:
                  type: integer
                  default: 1
                params:
                  type: array
                  default:
                    - 90253627
                    - 90253643
                  items:
                    type: integer
      responses:
        '200':
          description: Result
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: string

````