bor_getRootHash

Returns the root hash of a specified block range.

Log in to see full request history

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": "bor_getRootHash", "params": [ 1000, 1004 ] }'

Returns

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

Try Yourself

Path Params
string
required
Defaults to 8U3JLUhzIDg3GShvy9hkCCSYkLGc11kj
Body Params
string
required
Defaults to 1
string
required
Defaults to 2.0
string
required
Defaults to bor_getRootHash
params
array of int32s
required
Defaults to 1000,1004
params*
Language
Click Try It! to start a request and see the response here!