Commit 90cd9532 authored by 谢昇's avatar 谢昇

Update cli独立模块命令.md

parent d94f4980
**版本:V6.2.0**
**版本:V6.2.0**
......@@ -110,19 +110,34 @@ hashlock的500已被冻结。
```
hashlock的500已转移至B地址的hashlock合约中。
5. 取回,从hashlock合约取钱
`cli coins withdraw -a 500 -e hashlock`
**B签名**并发送。
5. 取回,从hashlock合约取钱
`cli coins withdraw -a 500 -e hashlock`
**B签名**并发送。
查询B地址余额:
`cli account balance -a 1LgiDySWZBGGcR4njtsXbWpJ6AS2R9cdwW`
```
{
"addr": "1LgiDySWZBGGcR4njtsXbWpJ6AS2R9cdwW",
"execAccount": [
{
"execer": "coins",
"account": {
"balance": "500.9980",
"frozen": "0.0000"
}
}
]
}
```
500已被取回B地址coins中。
注意:
A. 暂时未支持查询命令,如果需要监视操作过程,可以查询合约余额。在lock执行后,合约余额Frozen在A账户,在send完成后,合约余额在B账户
B. 因为send/withdraw都是由B地址签名完成的,因此这个B地址还需要有点钱作为手续费
C. 当前hash命令和一些其他的执行器类似,操作只是创建了交易,还需要签名并发送
D. lock过程指定了lock周期,只有在此时间内,才能成功进行send,超出这个周期只能进行unlock操作
附:
unlock操作,在lock动作后,超过设定时间,可以进行unlock操作,unlock后,余额在A账户,解除冻结状态,可以由A取回
./cli hashlock unlock -s mysecret
unlock操作,在lock动作后,超过设定时间,可以进行unlock操作。
unlock后,余额在**A账户**,解除冻结状态,可以由**A取回**
`cli hashlock unlock -s mysecret`
## multisig 多重签名合约
"1LmbKkDke6FB4mATfF1WQD2QLQQbk1JUFa" xs1
"1JDVvcppsUpfbaXqdoKyGTYV7eeakZgCHN" xs2
......
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