⚡ Test Our Private Nodes of 40+ Blockchains just for $50!

coins coins coins coins
/

Nervos Network (CKB)

ckb
Nervos Network (CKB)

Method: POST get_block_hash

dropdown

# get_block_hash example for Nervos Network (CKB)

POST get_block_hash

Returns the hash of a block in the canonical chain with the specified block_number.

Parameters

block_number - 64-bit unsigned integer type encoded as the 0x-prefixed hex string in JSON

the block number

Request

curl --location --request POST 'https://ckb.getblock.io/mainnet/' \
--header 'x-api-key: YOUR-API-KEY' \
--header 'Content-Type: application/json' \
--data-raw '{"jsonrpc": "2.0",
"method": "get_block_hash",
"params": ["0x75a843"],
"id": "getblock.io"}'


Response

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