Query appchain command
Closed this issue · 1 comments
jzhe886 commented
Development Task
- query all appchains in bitxhub
bitxhub client appchain getall
- query target appchain in bitxhub
bitxhub client appchain get --id 0x12132312312
jzhe886 commented
小提示:
- 代码逻辑在cmd/bitxhub/client/appchain_manager.go文件;
- 在
appchainMgCMD()
的Subcommands
添加getall
命令和get
命令; getall
函数通过sendViewTx
的方式向bitxhub发送查询所有应用链信息的只读交易;get
函数通过sendViewTx
的方式向bitxhub发送查询特定应用链信息的只读交易;- 将返回值以json格式进行解析;