FULL NAME
SUBJECT
Customer Support
Customer Support
Business / Sales
Partnership
Feedback
Other
TEXT MESSAGE
0/300
⚡ Test Our Private Nodes of 40+ Blockchains just for $50!
Method: POST get_tip_header
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.
verbosity
- integer
result format which allows 0 and 2. (Optional, the default is 2.)
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_header", "params": [null], "id": "getblock.io"}'
{ "id": "getblock.io", "jsonrpc": "2.0", "result": { "compact_target": "0x19129384", "dao": "0x95eb79d5c3f54043f727961f62d32600377eb9543dcffa0300a5e4f46a612107", "epoch": "0x4c302cc0016ee", "extra_hash": "0x0000000000000000000000000000000000000000000000000000000000000000", "hash": "0x67ab2bc9a47ac2b5868b17f249e4e079b7594e02b93bd687ab71779a88dee26c", "nonce": "0xa33e07be3012000000000005732b0c80", "number": "0x75aa23", "parent_hash": "0x31e7497acccdd8db33f7f4782c08b51b0c22e52df93d09bfd2de725cae883701", "proposals_hash": "0x908e87eb82b75fde5b31ddb4a2448d403bed14b1cf5b80adabc586a9ef867973", "timestamp": "0x18234d62d87", "transactions_root": "0x0c373a4db26cd0c28bdf64df103821b9ff2e91704385a71e2b05d9a4364124b1", "version": "0x0" } }