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
919dbd80
Commit
919dbd80
authored
May 29, 2019
by
谢昇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update cli命令使用文档.md
parent
305d7c2c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
24 deletions
+25
-24
cli命令使用文档.md
cli命令使用文档.md
+25
-24
No files found.
cli命令使用文档.md
View file @
919dbd80
**版本:
V6.2.0**
**版本:
V6.2.0**
...
@@ -933,7 +933,8 @@ Available Commands:
...
@@ -933,7 +933,8 @@ Available Commands:
}
}
```
```
# wallet模块
# 23.wallet模块
`cli wallet -h`
```
```
Available Commands:
Available Commands:
auto_mine Set auto mine on/off
auto_mine Set auto mine on/off
...
@@ -949,8 +950,8 @@ Available Commands:
...
@@ -949,8 +950,8 @@ Available Commands:
unlock Unlock wallet
unlock Unlock wallet
```
```
## wallet auto_mine 自动挖矿开启开关
##
23.1
wallet auto_mine 自动挖矿开启开关
cli wallet auto_mine -f 1
`cli wallet auto_mine -f 1`
```
```
{
{
"isOK": true,
"isOK": true,
...
@@ -960,16 +961,16 @@ cli wallet auto_mine -f 1
...
@@ -960,16 +961,16 @@ cli wallet auto_mine -f 1
※ -f后跟的0为关闭,1为开启
※ -f后跟的0为关闭,1为开启
## wallet list_txs 获取本钱包的交易列表
##
23.2
wallet list_txs 获取本钱包的交易列表
cli wallet list_txs -c 显示交易数量 -d 查询方向(0逆向,1正向) -f 开始查询的交易字符串
`cli wallet list_txs -c 显示交易数量 -d 查询方向(0逆向,1正向) -f 开始查询的交易字符串`
```
```
返回交易详情
返回交易详情
```
```
※ -f中查询的交易字符串,满足("%018d", height
*
100000 + index)的规则
※ -f中查询的交易字符串,满足("%018d", height
*
100000 + index)的规则
## wallet lock 锁定钱包
##
23.3
wallet lock 锁定钱包
cli wallet lock
`cli wallet lock`
```
```
{
{
"isOK": true,
"isOK": true,
...
@@ -977,28 +978,28 @@ cli wallet lock
...
@@ -977,28 +978,28 @@ cli wallet lock
}
}
```
```
## wallet merge 钱包中地址余额合并
##
23.4
wallet merge 钱包中地址余额合并
cli wallet merge -t 合并目标地址
`cli wallet merge -t 合并目标地址`
```
```
返回交易哈希
返回交易哈希
```
```
## wallet nobalance 对不涉及转账金额的交易构造不需要手续费的交易组
##
23.5
wallet nobalance 对不涉及转账金额的交易构造不需要手续费的交易组
cli -d 未签名的字符串 -k 签名私钥
`cli -d 未签名的字符串 -k 签名私钥`
```
```
返回交易组字符串
返回交易组字符串
```
```
※ 也可以选择-a 签名地址 来完成签名
※ 也可以选择-a 签名地址 来完成签名
## wallet send 对已完成签名的交易进行发送
##
23.6
wallet send 对已完成签名的交易进行发送
cli wallet send -d 已签名的字符串 -t 发送token名称的字符串(默认为BTY)
`cli wallet send -d 已签名的字符串 -t 发送token名称的字符串(默认为BTY)`
```
```
返回交易哈希
返回交易哈希
```
```
## wallet set_fee 设置交易手续费
##
23.7
wallet set_fee 设置交易手续费
cli wallet set_fee -a 设置的交易费
`cli wallet set_fee -a 设置的交易费`
```
```
{
{
"isOK": true,
"isOK": true,
...
@@ -1006,8 +1007,8 @@ cli wallet set_fee -a 设置的交易费
...
@@ -1006,8 +1007,8 @@ cli wallet set_fee -a 设置的交易费
}
}
```
```
## wallet set_pwd 设置钱包密码
##
23.8
wallet set_pwd 设置钱包密码
cli wallet set_pwd -n 新密码 -o 旧密码
`cli wallet set_pwd -n 新密码 -o 旧密码`
```
```
{
{
"isOK": true,
"isOK": true,
...
@@ -1015,14 +1016,14 @@ cli wallet set_pwd -n 新密码 -o 旧密码
...
@@ -1015,14 +1016,14 @@ cli wallet set_pwd -n 新密码 -o 旧密码
}
}
```
```
## wallet sign 对已构造的交易进行签名
##
23.9
wallet sign 对已构造的交易进行签名
cli wallet sign -d 未签名交易的字符串 -a 签名地址/-k 签名私钥 -e 超时时间(默认为120秒)
`cli wallet sign -d 未签名交易的字符串 -a 签名地址/-k 签名私钥 -e 超时时间(默认为120秒) `
```
```
返回签名的字符串
返回签名的字符串
```
```
## wallet status 获取钱包状态
##
23.10
wallet status 获取钱包状态
cli wallet status
`cli wallet status`
```
```
{
{
"isWalletLock": true,
"isWalletLock": true,
...
@@ -1032,8 +1033,8 @@ cli wallet status
...
@@ -1032,8 +1033,8 @@ cli wallet status
}
}
```
```
## wallet unlock 解锁钱包
##
23.11
wallet unlock 解锁钱包
cli wallet unlock -p 密码 -t 解锁时间(默认为无限长)
`cli wallet unlock -p 密码 -t 解锁时间(默认为无限长)`
```
```
{
{
"isOK": true,
"isOK": true,
...
...
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