Closed eval-exec closed 5 months ago
This issue has existed for a long time
$ ckb-cli rpc get_tip_header --output-format json --raw-data
{
"compact_target": "0x190941fa",
"dao": "0xd61f69de4073144e32a90701db4e2800c0bc43f38b982c0600a1f4d1b79c3707",
"epoch": "0x461018800236d",
"extra_hash": "0x47ab2b4db77d39b42d000da890ba12150a7fc0710309f42e5f5da4ffae5d3c01",
"hash": "0xb1b273ba646be67cb9f84e32ca82a9a1f0cf5ad8c840c74329f001b87218fac2",
"nonce": "0x51481be24680294f0000000242050500",
"number": "0xb61050",
"parent_hash": "0x4ee148108c47094264b4c1f45054a84404675be8d7330a59364f5192d73f7a0b",
"proposals_hash": "0x643fc1e2b3595a556fa7a0c73c72325d93e2bcffc2584f1012be18ccaf2ce640",
"timestamp": "0x18cf2af943c",
"transactions_root": "0x3bb3bd4722029f0f9e7a537eacce9e5097f652290892397ab1f5cccd35dc8aba",
"version": "0x0"
}
The --raw-data
option allows for specifying epoch
and timestamp
fields as 0x-prefixed strings. close this.
Don't know there's a option --raw-data
For example:
the
epoch
andtimestamp
fields should be a valid 0x-prefixed hex string.Note: I believe the format of
ckb rpc get_tip_header --output-format json
should be the same asckb molecule default --type Header --output-format json