post https://ckb-mirana.unifra.io/v1/
Returns the header with the highest block number in the canonical chain.
Because of chain reorganization, the block number returned can be less than previous invocations and different invocations may return different block headers with the same block number.
Parameters
- verbosity - Result format which allows 0 and 1. (Optional, the default is 1.)
Returns
When verbosity is 1, the RPC returns a JSON object as the result. See HeaderView for the schema.
When verbosity is 0, it returns a 0x-prefixed hex string as the result. The string encodes the header serialized by molecule using schema table Header.
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_header",
"params": []
}'
Result
{
"jsonrpc": "2.0",
"result": {
"compact_target": "0x1911ce98",
"dao": "0x5e9e2cf0ee775645ea373323301d27009f93e365108e45040042a5a26d432c07",
"epoch": "0x3bf02f400193f",
"extra_hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"hash": "0x37c2afcd2db89fd352597de89a4b345b672289ec581df496d78f32832505aa64",
"nonce": "0xa094d6bd1d000000000000016c4c064c",
"number": "0x7ff58c",
"parent_hash": "0x93be5a54ef4fe36be4cf9a7ba71d4b4ca268f1b3ede964702eff47d9397707e1",
"proposals_hash": "0x065727d5d86b74dac0bb6bed4b797e52989c877ed4de279de23dac37924d0e5d",
"timestamp": "0x1843310b353",
"transactions_root": "0x09b8c154e177d7cf236b8defa36880fc0fa84cd08a80d1441bd749fc442849c2",
"version": "0x0"
},
"id": 42
}