API Reference

bor_getRootHash - Polygon

Polygon API - Returns the root hash given a block range

Parameters

  • from block number (in int format)
  • to block number (in int format)

Returns

HASH


Example

Request

curl https://polygon-mainnet.unifra.io/v1/your-api-key \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"bor_getRootHash","params":[1000000, 1032767], "id":1}'
URL: https://polygon-mainnet.unifra.io/v1/your-api-key
RequestType: POST
Body:
{
    "jsonrpc":"2.0",
    "method":"bor_getRootHash",
    "params":[1000000, 1032767],
    "id":1
}

Result

{
	"jsonrpc": "2.0",
	"id": 1,
	"result": "04b073e17b7186ab4daae17c5e2cc2d5a729cffd102cede41ee458a2d5573994"
}
Language
Click Try It! to start a request and see the response here!