get_tip_block_number - Nervos

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

  • none

Returns

The number of blocks.

Example

Request

curl --location --request POST 'https://ckb-mirana.unifra.io/v1/4fb36720a57340d39aee4cf68511064a' \
--header 'Content-Type: application/json' \
--data-raw '{
  "id": 42,
  "jsonrpc": "2.0",
  "method": "get_tip_block_number",
  "params": []
}'

Result

{
    "jsonrpc": "2.0",
    "result": "0x7ff5a5",
    "id": 42
}
Language
Click Try It! to start a request and see the response here!