bitxhub
bitxhub copied to clipboard
Query IBTP commnad
Development Task
Add a command that queries ibtp by id.
bitxhub client ibtp get <ibtp-id>
小提示:
- 新建cmd/bitxhub/client/ibtp.go文件;
- 在
ibtpCMD()
的Subcommands
添加get
命令; -
get
函数中通过sendTx
的方式向bitxhub发送查询IBTP的交易; - 将交易回执以json格式进行解析;