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
90cd9532
Commit
90cd9532
authored
Jul 16, 2019
by
谢昇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update cli独立模块命令.md
parent
d94f4980
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
11 deletions
+26
-11
cli独立模块命令.md
cli独立模块命令.md
+26
-11
No files found.
cli独立模块命令.md
View file @
90cd9532
**版本:
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
...
...
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