Skip to main content

Parameters

chainId
string
default:"80002"
required
Unique identifier for a blockchain network.
id
number
default:1
required
Request identifier used to match responses.
jsonrpc
string
default:"2.0"
required
JSON-RPC version.
method
string
default:"bor_getRootHash"
required
JSON-RPC method name.
params
object
required
Parameters for bor_getRootHash: [fromBlock, toBlock]Positional parameters for bor_getRootHash:
  • params[0]: Starting block number (inclusive).
  • params[1]: Ending block number (inclusive). Maximum difference: 32,767 blocks.

Returns

result
string
Root hash of the specified block range. Example: “67518d9fc6bf9ff886ba1a4e932a0d0a8a1318b3f300518773aaf2210410cf73”.
curl --request POST \
  --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=80002 \
  --header 'content-type: application/json' \
  --data '{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "bor_getRootHash",
    "params": [
      1000,
      1032
    ]
  }'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "67518d9fc6bf9ff886ba1a4e932a0d0a8a1318b3f300518773aaf2210410cf73"
}