bitxhub icon indicating copy to clipboard operation
bitxhub copied to clipboard

Query appchain command

Open jzhe886 opened this issue 3 years ago • 1 comments

Development Task

  • [ ] query all appchains in bitxhub
bitxhub client appchain getall
  • [ ] query target appchain in bitxhub
bitxhub  client appchain get --id  0x12132312312

jzhe886 avatar Jun 28 '21 06:06 jzhe886

小提示:

  1. 代码逻辑在cmd/bitxhub/client/appchain_manager.go文件;
  2. appchainMgCMD()Subcommands添加getall命令和get命令;
  3. getall函数通过sendViewTx的方式向bitxhub发送查询所有应用链信息的只读交易;
  4. get函数通过sendViewTx的方式向bitxhub发送查询特定应用链信息的只读交易;
  5. 将返回值以json格式进行解析;

jzhe886 avatar Jun 28 '21 07:06 jzhe886