bor_getRootHash

Returns the root hash of a specified block.

Parameters

  1. QUANTITY, Integer - fromBlock. The block number from which the range starts REQUIRED

  2. QUANTITY, Integer - toBlock. The block number where the range ends REQUIRED

Returns

  1. DATA, 20 Bytes - Signer. The address of the validator

  2. QUANTITY, Integer - ID. The id of the validator

  3. QUANTITY, Integer - accum. The proposer priority for the validator

  4. QUANTITY, Integer - power. The voting power of the validator

Example

Request

curl --request POST \
     --url https://endpoints.omniatech.io/v1/RPC_ENDPOINT \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{"jsonrpc":"2.0","method":"bor_getRootHash","params":[1000, 1032], "id":1}
'

Response

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": "67518d9fc6bf9ff886ba1a4e932a0d0a8a1318b3f300518773aaf2210410cf73"
}

Last updated