bor_getRootHash - Polygon
bor_getRootHash. Retrieve the root hash of a block
bor_getRootHash - polygon [Value: 10CU]
Retrieve the author of a block
Use cases
- Retrieve the root hash of the latest block
- Verify block state integrity on Polygon
- Cross-reference root hash with other nodes
Constraints
- Requires a synced Polygon (Bor) node
- Only provides the latest block's root hash
- Works in PoS consensus environments only
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key
Language
Request
Examples
curl https://polygon.drpc.org \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"method": "bor_getRootHash",
"params": [1000, 1032],
"id": 1
}'
Response
200
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x9ead03f7136fc6b4bdb0780b00a1c14ae5a8b6d0"
}
Request params
idinteger
jsonrpcstring
methodstring
array
fromBlockinteger
REQUIRED. The block number from which the range starts.
toBlockinteger
REQUIRED. The block number where the range ends.
Response
200
The address of the block author.Response params
object
idinteger
jsonrpcstring
resultstring
The root hash of the specified block range.