Skip to main content

bor_getRootHash

Polygon API - Returns the root hash given a block range

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.blastapi.io/<project-id> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"bor_getRootHash","params":[1000000, 1032767], "id":1}'

Result

{
"jsonrpc": "2.0",
"id": 1,
"result": "04b073e17b7186ab4daae17c5e2cc2d5a729cffd102cede41ee458a2d5573994"
}