🟪 Polygon
bor_getRootHash

Polygon API Documentation


bor_getRootHash RPC Method

The bor_getRootHash returns the root hash of a specified block range on Polygon.

Parameters

  • fromBlock - integer - The block number where the range starts
  • toBlock - integer - The block number where the range ends

Returns

  • hash - string

Need RPC API keys?

Get 12.5M archival requests for free today.

Request

POST https://<network>.chainnodes.org/YOUR-API-KEY

Example

  • HTTPS POST Request with a JSON RPC call in the body
  • Replace YOUR-API-KEY with the API key from your CHAINNODES.ORG Dashboard
  • You can use a different supported network by replacing polygon-mainnet
curl https://polygon-mainnet.chainnodes.org/YOUR-API-KEY \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"id": "1", "jsonrpc":"2.0","method":"bor_getRootHash","params": [22, 26]}'

Body

{
  "id":"1",
  "jsonrpc":"2.0",
  "result":"88ffac733402174844491c9fd0f4b07114db93bf0a9623faeaa6b9d635e0094e"
}

💡 Confusing?

Ask our experienced blockchain developers in Telegram

JSON-RPC Polygon API Documentation by CHAINNODES is based on Erigon node client. Contact us if you are interested in specific methods that are only available on geth, besu, Nethermind or reth