FULL NAME
SUBJECT
Customer Support
Customer Support
Business / Sales
Partnership
Feedback
Demo Request
Other
TEXT MESSAGE
0/300
⚡ We welcome businesses to test our enterprise-grade service
Method: POST get_header_by_number
返回具有特定块号的规范链中的块标头。
block_number
- 64位未签名的整数类型,编码为JSON中的0倍置换式六角字符串
块号
verbosity
- 整数
结果格式允许0和2。(可选,默认值为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_header_by_number", "params": ["0x75a843", null], "id": "getblock.io"}'
{ "id": "getblock.io", "jsonrpc": "2.0", "result": { "compact_target": "0x19129384", "dao": "0x3583b4d01a9b404300d0696f55d326006633b9b39fbbfa0300c9c2ce0e5f2107", "epoch": "0x4c300ec0016ee", "extra_hash": "0x0000000000000000000000000000000000000000000000000000000000000000", "hash": "0xe8038094a1e2c82c45401e2089ec28f0f99b0b71eb385307e4f3c3a54c643294", "nonce": "0x23746dab00000000b59000007f44020c", "number": "0x75a843", "parent_hash": "0xb1d7c5ae609ed8e168fdf6188ce697ced363b5cb7b7ac58745a7fadfa3eeeacb", "proposals_hash": "0x12efb0ca6d3aa1781085382057164e2c1836768a22b96e8807b9c935b8d6a737", "timestamp": "0x18234744d6e", "transactions_root": "0xfbfb8dd8da57bbbc0c4de3955a7edb4211c5615bc37b6adbf006bd5ed9028d7a", "version": "0x0" } }