meshplus/bitxhub

Query appchain command

Closed this issue · 1 comments

Development Task

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

小提示:

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