bitxhub icon indicating copy to clipboard operation
bitxhub copied to clipboard

Get block header

Open jzhe886 opened this issue 3 years ago • 1 comments

Development Task

Get block header

bitxhub client header --height 110

jzhe886 avatar Jun 28 '21 06:06 jzhe886

小提示:

  1. 代码逻辑在cmd/bitxhub/client/block.go文件;
  2. blockCMD()Subcommands添加getHeader命令;
  3. getHeader函数中通过http get的方式向url为block_headers?start=%d&end=%d发送请求;
  4. 将返回值以json格式进行解析;

jzhe886 avatar Jun 28 '21 06:06 jzhe886

finished

Karenlrx avatar Sep 21 '22 10:09 Karenlrx