Commit e304d029 authored by 谢昇's avatar 谢昇

Update cli命令使用文档.md

parent 62b30d96
**版本:V6.2.0** **版本:V6.2.0**
...@@ -690,21 +690,21 @@ cli seed save -s 种子 -p 密码 ...@@ -690,21 +690,21 @@ cli seed save -s 种子 -p 密码
※ 一个钱包只能有一个种子。 ※ 一个钱包只能有一个种子。
# send模块 # 15.send模块
``` ```
Use similarly as bty/token/trade/bind_miner raw transaction creation, in addition to the parameter of private key or from address input following "-k". Use similarly as bty/token/trade/bind_miner raw transaction creation, in addition to the parameter of private key or from address input following "-k".
e.g.: cli send bty transfer -a 1 -n note -t toAddr -k privKey/fromAddr e.g.: cli send bty transfer -a 1 -n note -t toAddr -k privKey/fromAddr
``` ```
主要用于测试,代替构造-签名-发送三步走,直接在一步命令中执行。 代替构造-签名-发送三步模式的简易方式,支持任何交易,针对任何构造的交易,在该构造结构最前加上send,再加上-k签名或本钱包拥有的地址即可。
# stat模块
# 16.stat模块
`cli stat -h`
``` ```
Available Commands: Available Commands:
miner Get miner statistic exec_balance Get the exec amount of a token of one address (default: all exec-addr bty of current height of one addr)
ticket_info Get ticket info by ticket_id total_coins Get total amount of a token (default: bty of current height)
ticket_info_list Get ticket info list by ticket_id
ticket_stat Get ticket statistics by addr
total_coins Get total amount of a token
``` ```
※ stat模块需要在配置文件中,将exec中的enableStat置为true,并且节点从0开始同步。 ※ stat模块需要在配置文件中,将exec中的enableStat置为true,并且节点从0开始同步。
...@@ -712,7 +712,8 @@ Available Commands: ...@@ -712,7 +712,8 @@ Available Commands:
TBD TBD
# ticket模块 # 17.ticket模块
`cli ticket -h`
``` ```
Available Commands: Available Commands:
bind_miner Bind private key to miner address bind_miner Bind private key to miner address
...@@ -721,24 +722,27 @@ Available Commands: ...@@ -721,24 +722,27 @@ Available Commands:
count Get ticket count count Get ticket count
``` ```
## ticket bind_miner 构造离线挖矿授权 ## 17.1 ticket bind_miner 构造离线挖矿授权
cli ticket bind_miner -b 在线挖矿地址 -o 离线授权地址 `cli ticket bind_miner -b 在线挖矿地址 -o 离线授权地址`
``` ```
返回十六进制字符串 返回十六进制字符串
``` ```
※ 详见离线挖矿 ※ 详见离线挖矿
## ticket close 关闭挖矿 ## 17.2 ticket close 关闭挖矿
cli ticket close `cli ticket close -m 挖矿地址(可选)`
``` ```
返回交易哈希 返回交易哈希
``` ```
※ 需要先关闭钱包的自动挖矿状态,否则返回ErrMinerNotClosed;无票可关闭时返回no ticket to be close ※ 需要先关闭钱包的自动挖矿状态,否则返回ErrMinerNotClosed;无票可关闭时返回no ticket to be close。若存在多个可关闭ticket的地址,会返回多个哈希。
针对离线挖矿,挖矿地址改变的情况下,可以-m后跟在线挖矿的地址,会扫描该地址是否有关联的离线地址的私钥在本钱包中。若存在,则会关闭ticket。避免在线地址的私钥丢失的情况下无法关闭的问题。
## ticket cold 根据指定在线挖矿地址获取离线授权地址 ## 17.3 ticket cold 根据指定在线挖矿地址获取离线授权地址
cli ticket cold -m 在线挖矿地址 `cli ticket cold -m 在线挖矿地址`
``` ```
{ {
"datas": [ "datas": [
...@@ -747,7 +751,7 @@ cli ticket cold -m 在线挖矿地址 ...@@ -747,7 +751,7 @@ cli ticket cold -m 在线挖矿地址
} }
``` ```
## ticket count 获取本钱包正在挖矿的票数 ## 17.4 ticket count 获取本钱包正在挖矿的票数
cli ticket count cli ticket count
``` ```
返回票数 返回票数
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment