eth_getRootHash-polygon

Returns the root hash of a specified block range.

Parameters

  • fromBlock : INTEGER - from block number specified as an integer
  • toBlock : INTEGER - to block number specified as an integer
curl https://polygon-mainnet-rpc.allthatnode.com:8545/8U3JLUhzIDg3GShvy9hkCCSYkLGc11kj \
--request POST \
--header "Content-Type: application/json" \
--data '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "eth_getRootHash",
  "params": [
    1000,
    1004
  ]
}'

Returns

  • string: root hash of the specified block range
{
    "jsonrpc": "2.0",
    "id": 1,
    "result": "7186d1ea1d7f0b81d8b4e62c057507bd50512c13b9f2319d5a5d536214685767"
}

Try Yourself

Language
Click Try It! to start a request and see the response here!