GetBlockFinalityByHash

Returns the the finality of the block of given BLOCKHASH.

Parameters

BLOCKHASH [required] - a string representing a BLOCKHASH

params: [ '0x605777ee60ef3ccf21e079fa1b091b0196cf1a2c1dd7c088dd5b1ab03f680b6f' ]

Returns

  • BLOCK_FINALITY - integer of the the finality of the block of given BLOCKHASH.
POSThttps://tomo.nownodes.io/getBlockFinalityByHash
Body
jsonrpc*string
method*string
params*array of string
id*integer (int32)
Response

Successful Operation

Request
const response = await fetch('https://tomo.nownodes.io/getBlockFinalityByHash', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "jsonrpc": "2.0",
      "method": "eth_getBlockFinalityByHash",
      "params": [
        "0x605777ee60ef3ccf21e079fa1b091b0196cf1a2c1dd7c088dd5b1ab03f680b6f"
      ],
      "id": 1
    }),
});
const data = await response.json();