GetBlockHash/获取指定高度区块的哈希
getblockhash
调用返回在本地最优链中指定高度区块的哈希。
参数
- BlockHeight:区块在链中的高度
返回值
getblockhash
调用返回指定高度区块的块头哈希值。
示例代码
下面的命令返回高度为240886的区块的哈希值:
~$ bitcoin-cli -testnet getblockhash 240886
输出结果如下:
00000000a0faf83ab5799354ae9c11da2a2bd6db44058e03c528851dee0a3fff