1

我想通过块号或块哈希来获取比特币块的原始或十六进制版本,但似乎没有块浏览器可以做到这一点。我找到了一个介绍此 URL 的答案:https ://www.blockchain.com/btc/block/8765?format=hex但它似乎不起作用。特别是我想要块号 6425 的原始或十六进制。

4

1 回答 1

1

您可以getblock在 bitcoin-core 中使用带有0详细值的命令。

您可以直接在比特币核心控制台窗口中尝试此操作,或使用bitcoin-cli.

例子:

>getbestblockhash
27c9c0439b96b38a846f762e362607c9cd97605de8b293b3234eaf2869a4da9a
>getblock 27c9c0439b96b38a846f762e362607c9cd97605de8b293b3234eaf2869a4da9a 0
0000002076fe9fe0e4df326461fdddc3836cf220a8395c3c5c1b6fa372deb692ebf6f5732e7beb0de9ff1dd4853c203b120eb4caeeed1901aaf43de5a831c4dcdba50bc54070cf60ffff7f200000000001020000000001010000000000000000000000000000000000000000000000000000000000000000ffffffff03580101ffffffff0200f2052a010000001600146241cc8a5f1120019e0e0d8dca674d1f4f58b0ac0000000000000000266a24aa21a9ede2f61c3f71d1defd3fa999dfa36953755c690689799962b48bebd836974e8cf90120000000000000000000000000000000000000000000000000000000000000000000000000

对于高度为 6425的块,十六进制的原始块是...

01000000a0d4ea3416518af0b238fef847274fc768cd39d0dc44a0ea5ec0c2dd000000007edfbf7974109f1fd628f17dfefd4915f217e0ec06e0c74e45049d36850abca4bc0eb049ffff001d27d0031e0101000000010000000000000000000000000000000000000000000000000000000000000000ffffffff0804ffff001d024f02ffffffff0100f2052a010000004341048a5294505f44683bbc2be81e0f6a91ac1a197d6050accac393aad3b86b2398387e34fedf0de5d9f185eb3f2c17f3564b9170b9c262aa3ac91f371279beca0cafac00000000
于 2021-06-20T18:18:50.063 回答