chain_getBlockHash - Kusama

Example code for the chain_getBlockHash json-rpc method. Сomplete guide on how to use chain_getBlockHash json-rpc in GetBlock.io Web3 documentation.

Parameters

blockNumber - BlockNumber

number of the block

Request

curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>/' \
--header 'Content-Type: application/json' \ 
--data-raw '{"jsonrpc": "2.0",
"method": "chain_getBlockHash",
"params": ["0x67103a"],
"id": "getblock.io"}'

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": "0x255bc00927df8d33d561792635cbc6bde480a0a505eef5ff28630ece3fc15b32"
}

Last updated