Commit 7a35744a authored by 谢昇's avatar 谢昇

Update cli命令使用文档.md

parent 0aa39e6e
**版本:V6.2.0**
**版本:V6.2.0**
......@@ -347,27 +347,51 @@ Available Commands:
}
```
# bty模块
# 3.cert模块
`cli cert -h`
```
Flags:
--ca whether this cert should be its own Certificate Authority
--duration duration Duration that certificate is valid for (default 8760h0m0s)
--ecdsa-curve string ECDSA curve to use to generate a key. Valid values are P224, P256 (recommended), P384, P521
-h, --help help for cert
--host string Comma-separated hostnames and IPs to generate a certificate for
--rsa-bits int Size of RSA key to generate. Ignored if --ecdsa-curve is set (default 2048)
--start-date string Creation date formatted as Jan 1 15:04:05 2011
```
主要用于联盟链,在此不加详述。
# 4.close模块
## 4.1 cli close 关闭chain33
`cli close`
执行关闭chian33的操作。
```
{
"isOK": true,
"msg": ""
}
```
# 5.coins模块
`cli coins -h`
```
Available Commands:
priv2priv Create a privacy to privacy transaction
priv2pub Create a privacy to public transaction
pub2priv Create a public to privacy transaction
send_exec Create a send to executor transaction
transfer Create a transfer transaction
txgroup Create a transaction group
withdraw Create a withdraw transaction
```
在6.1及前版本中,使用的是bty模块命令,后因平行链的拓展使用,统一改为coins模块。
## 隐私交易相关
包括priv2priv、priv2pub、pub2priv为隐私交易相关操作,再此不再赘述。
## bty send_exec 构指定地址向指定执行器转账的交易
## bty send_exec 构指定地址向指定执行器转账的交易
cli bty send_exec -e 执行器名字 -a 数量
```
未签名的十六进制字符串
```
※ 完成一笔交易需要经过构建-签名-发送三步操作。
※ 完成一笔交易需要经过**构建-签名-发送**三步操作。
## bty transfer 构建coins合约转账交易
cli bty transfer -t 目标地址 -a 数量
......@@ -384,19 +408,7 @@ cli bty withdraw -e 执行器名字 -a 数量 -n 备注
未签名的十六进制字符串
```
# close模块
## cli close 关闭chain33
执行关闭chian33的操作。
```
{
"isOK": true,
"msg": ""
}
```
# coins模块
目前作为bty的别名使用。
# config模块
```
......
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