Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
test
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
谢昇
test
Commits
e304d029
Commit
e304d029
authored
May 29, 2019
by
谢昇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update cli命令使用文档.md
parent
62b30d96
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
18 deletions
+22
-18
cli命令使用文档.md
cli命令使用文档.md
+22
-18
No files found.
cli命令使用文档.md
View file @
e304d029
**版本:
V6.2.0**
**版本:
V6.2.0**
...
...
@@ -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".
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:
miner Get miner statistic
ticket_info Get ticket info by ticket_id
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
exec_balance Get the exec amount of a token of one address (default: all exec-addr bty of current height of one addr)
total_coins Get total amount of a token (default: bty of current height)
```
※ stat模块需要在配置文件中,将exec中的enableStat置为true,并且节点从0开始同步。
...
...
@@ -712,7 +712,8 @@ Available Commands:
TBD
# ticket模块
# 17.ticket模块
`cli ticket -h`
```
Available Commands:
bind_miner Bind private key to miner address
...
...
@@ -721,24 +722,27 @@ Available Commands:
count Get ticket count
```
## ticket bind_miner 构造离线挖矿授权
cli ticket bind_miner -b 在线挖矿地址 -o 离线授权地址
##
17.1
ticket bind_miner 构造离线挖矿授权
`cli ticket bind_miner -b 在线挖矿地址 -o 离线授权地址`
```
返回十六进制字符串
```
※ 详见离线挖矿
## ticket close 关闭挖矿
cli ticket close
##
17.2
ticket close 关闭挖矿
`cli ticket close -m 挖矿地址(可选)`
```
返回交易哈希
```
※ 需要先关闭钱包的自动挖矿状态,否则返回ErrMinerNotClosed;无票可关闭时返回no ticket to be close
※ 需要先关闭钱包的自动挖矿状态,否则返回ErrMinerNotClosed;无票可关闭时返回no ticket to be close。若存在多个可关闭ticket的地址,会返回多个哈希。
针对离线挖矿,挖矿地址改变的情况下,可以-m后跟在线挖矿的地址,会扫描该地址是否有关联的离线地址的私钥在本钱包中。若存在,则会关闭ticket。避免在线地址的私钥丢失的情况下无法关闭的问题。
## ticket cold 根据指定在线挖矿地址获取离线授权地址
cli ticket cold -m 在线挖矿地址
##
17.3
ticket cold 根据指定在线挖矿地址获取离线授权地址
`cli ticket cold -m 在线挖矿地址`
```
{
"datas": [
...
...
@@ -747,7 +751,7 @@ cli ticket cold -m 在线挖矿地址
}
```
## ticket count 获取本钱包正在挖矿的票数
##
17.4
ticket count 获取本钱包正在挖矿的票数
cli ticket count
```
返回票数
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment