Skip to main content

eth_getRootHash RPC Method

Returns the root hash for a specified block range.

Updated on
Nov 2, 2023

eth_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":"eth_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