Commit 4cfd36ee authored by 谢昇's avatar 谢昇

Update cli命令使用文档.md

parent 3671fd43
**版本: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
......
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