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
4cfd36ee
Commit
4cfd36ee
authored
May 28, 2019
by
谢昇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update cli命令使用文档.md
parent
3671fd43
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
19 deletions
+31
-19
cli命令使用文档.md
cli命令使用文档.md
+31
-19
No files found.
cli命令使用文档.md
View file @
4cfd36ee
**版本:V6.2.0**
**版本:V6.2.0**
**环境:bityuan主链**
全新环境创建钱包环境流程:
生成种子(seed generate)→保存种子(seed save)→解锁钱包(wallet unlock)→生成地址(account create)
# CLI命令总览
# CLI命令总览
```
```
Available Commands:
Available Commands:
account Account management
account Account management
asset Asset query
block Get block header or body info
block Get block header or body info
bty Construct BTY transactions
cert generate cert
close Close
chain33
close Close
coins Construct system coins transactions
coins Construct system coins transactions
config Configuration
config Configuration
evm EVM contracts operation
exec Executor operation
exec Executor operation
hashlock Hashlock operation
help Help about any command
help Help about any command
mempool Mempool management
mempool Mempool management
multisig multisig management
net Net operation
net Net operation
privacy Privacy transaction management
para Construct para transactions
relay Cross chain relay management
retrieve Wallet retrieve operation
retrieve Wallet retrieve operation
seed Seed management
seed Seed management
send Send transaction in one
move
send Send transaction in one
step
stat Coin statistic
stat Coin statistic
ticket Ticket management
ticket Ticket management
token Token management
token Token management
trade Token trade management
trade Token trade management
tx Transaction management
tx Transaction management
unfreeze Unfreeze construct management
version Get node version
version Get node version
wallet Wallet management
wallet Wallet management
```
```
# account模块
#
1.
account模块
cli account -h
`cli account -h`
```
```
Available Commands:
Available Commands:
balance Get balance of a account address
balance Get balance of a account address
...
@@ -41,8 +48,8 @@ Available Commands:
...
@@ -41,8 +48,8 @@ Available Commands:
```
```
针对account模块的操作,需在本地钱包已拥有种子(seed),且钱包状态为已解锁的前提下。
针对account模块的操作,需在本地钱包已拥有种子(seed),且钱包状态为已解锁的前提下。
## account balance 地址余额查询
##
1.1
account balance 地址余额查询
cli account balance -a 查询地址 -e 执行器名称(合约)
`cli account balance -a 查询地址 -e 执行器名称(合约)--height 指定高度(可选项)`
```
```
{
{
"balance": "4662.8270",
"balance": "4662.8270",
...
@@ -50,10 +57,13 @@ cli account balance -a 查询地址 -e 执行器名称(合约)
...
@@ -50,10 +57,13 @@ cli account balance -a 查询地址 -e 执行器名称(合约)
"addr": "14KEKbYtKKQm4wMthSK9J4La4nAiidGozt"
"addr": "14KEKbYtKKQm4wMthSK9J4La4nAiidGozt"
}
}
```
```
目前支持的执行器下文会列出。
可以指定具体的执行器查询,不指定时显示所有有余额的执行器;
可以指定具体高度查询,未指定时默认为-1(最新)。
目前支持的执行器为:"none", "coins", "manage", "ticket", "hashlock", "multisig", "paracross", "retrieve", "token", "trade", "unfreeze" 和 user-defined type
## account create 新建钱包地址
##
1.2
account create 新建钱包地址
cli account create -l 自定义地址标签
`cli account create -l 自定义地址标签`
```
```
{
{
"acc": {
"acc": {
...
@@ -64,18 +74,19 @@ cli account create -l 自定义地址标签
...
@@ -64,18 +74,19 @@ cli account create -l 自定义地址标签
"label": "test1"
"label": "test1"
}
}
```
```
标签不可重复;由钱包种子生成的地址可以被种子(助记词)恢复。
## account dump_key 钱包地址私钥导出
##
1.3
account dump_key 钱包地址私钥导出
cli account dump_key -a 本钱包中的地址
`cli account dump_key -a 本钱包中的地址`
```
```
{
{
"
replystr
": "0x3e611fde7175fbda1212a6c24cc605b209058af47565903cf7a0f3bc6087b4d1"
"
data
": "0x3e611fde7175fbda1212a6c24cc605b209058af47565903cf7a0f3bc6087b4d1"
}
}
```
```
## account import_key 外部私钥导入钱包
##
1.4
account import_key 外部私钥导入钱包
cli account import_key -k 外部私钥
`cli account import_key -k 外部私钥`
```
```
{
{
"acc": {
"acc": {
...
@@ -86,6 +97,7 @@ cli account import_key -k 外部私钥
...
@@ -86,6 +97,7 @@ cli account import_key -k 外部私钥
"label": "test2"
"label": "test2"
}
}
```
```
标签不可与已有标签重复;私钥不可与已有私钥重复。
## account list 本地钱包地址余额列表显示
## account list 本地钱包地址余额列表显示
cli account list
cli account list
...
...
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