Skip to main content

bor_getRootHash RPC Method

Returns the root hash of a specified block.

Updated on
Nov 2, 2023

bor_getRootHash RPC Method

Parameters

fromBlock
integer
REQUIRED
The block number from which the range starts
toBlock
integer
REQUIRED
The block number where the range ends

Returns

result
The root hash of the specified block range
Request
1
curl https://docs-demo.matic.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{"jsonrpc":"2.0","method":"bor_getRootHash","params":[1000, 1032], "id":1}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free