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

coins coins coins coins
/

Nervos Network (CKB)

ckb
Nervos Network (CKB)

Method: POST get_tip_block_number

dropdown

# get_tip_block_number example for Nervos Network (CKB)

POST get_tip_block_number

Returns the highest block number in the canonical chain. Because of chain reorganization, the returned block number may be less than a value returned in the previous invocation.

Parameters

-

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_tip_block_number",
"params": [],
"id": "getblock.io"}'


Response

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