eth_getRootHash
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

​Alchemy Composer​

The Alchemy Composer allows you to make a no-code example request via your browser. Try it out above!

Request

Curl
Postman
1
curl https://polygon-mainnet.g.alchemyapi.io/v2/your-api-key \
2
-X POST \
3
-H "Content-Type: application/json" \
4
-d '{"jsonrpc":"2.0","method":"eth_getRootHash","params":[1000000, 1032767], "id":1}'
Copied!
1
URL: https://polygon-mainnet.g.alchemyapi.io/v2/your-api-key
2
RequestType: POST
3
Body:
4
{
5
"jsonrpc":"2.0",
6
"method":"eth_getRootHash",
7
"params":[1000000, 1032767],
8
"id":1
9
}
Copied!

Result

1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": "04b073e17b7186ab4daae17c5e2cc2d5a729cffd102cede41ee458a2d5573994"
5
}
Copied!
​
Last modified 17d ago