curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=137 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "bor_getRootHash",
"params": [
1000,
1032
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": "67518d9fc6bf9ff886ba1a4e932a0d0a8a1318b3f300518773aaf2210410cf73"
}
Returns the root hash for a specified range of blocks on the Polygon Bor chain. The maximum range must not exceed 32,767 blocks.
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=137 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "bor_getRootHash",
"params": [
1000,
1032
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": "67518d9fc6bf9ff886ba1a4e932a0d0a8a1318b3f300518773aaf2210410cf73"
}
bor_getRootHash:params[0]: Starting block number (inclusive).params[1]: Ending block number (inclusive). Maximum difference: 32,767 blocks.“67518d9fc6bf9ff886ba1a4e932a0d0a8a1318b3f300518773aaf2210410cf73”.curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=137 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "bor_getRootHash",
"params": [
1000,
1032
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": "67518d9fc6bf9ff886ba1a4e932a0d0a8a1318b3f300518773aaf2210410cf73"
}
Was this page helpful?