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
e9df3a9c
Commit
e9df3a9c
authored
Mar 10, 2020
by
谢昇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update cli独立模块命令-3(privacy、para).md
parent
ef3b43e1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
4 deletions
+26
-4
cli独立模块命令-3(privacy、para).md
cli独立模块命令-3(privacy、para).md
+26
-4
No files found.
cli独立模块命令-3(privacy、para).md
View file @
e9df3a9c
**版本:
V6.3.2**
**版本:
V6.3.2**
...
...
@@ -443,11 +443,14 @@ Total Privacy spend amount is 132.0000
```
Available Commands:
asset_transfer Create a asset transfer to para-chain transaction
asset_txinfo Get para chain cross asset transfer info
asset_withdraw Create a asset withdraw to para-chain transaction
blocks Get blocks with main chain hash map between [start, end], the same in main
buffer_block Get para download-level block info
config parachain config cmd
consens_status Get para chain current consensus status
consens_done Get para chain done height consensus info
consens_status Get para chain heights' consensus status
cross_transfer Create a cross asset transfer transaction
height query consensus height
is_sync query parachain is sync
nodegroup super node group manage cmd
...
...
@@ -456,14 +459,15 @@ Available Commands:
transfer Create a transfer transaction
transfer_exec Create a transfer to exec transaction
withdraw Create a withdraw transaction
```
***
## asset_transfer 资产转移
进行para资产转移前需在paracross合约中存有足额的资产。
`cli para asset_transfer --p
titl
e user.p.game. -a 10 -n test -t 12HKLEn6g4FH39yUbHh4EVJWcFo5CXg22d`
`cli para asset_transfer --p
araNam
e user.p.game. -a 10 -n test -t 12HKLEn6g4FH39yUbHh4EVJWcFo5CXg22d`
签名并完成发送。
p
title为目标平行链的标题,注意格式为最后有一点
。
p
araName为目标平行链的标题,注意格式为最后有一点。-s后为资产标志,缺省为bty
。
通过调用平行链的余额查询,查询余额。
`cli asset balance -a 12HKLEn6g4FH39yUbHh4EVJWcFo5CXg22d --asset_exec paracross --asset_symbol coins.bty -e paracross --rpc_laddr="http://114.55.11.139:1195"`
...
...
@@ -477,6 +481,24 @@ ptitle为目标平行链的标题,注意格式为最后有一点。
若未编译指定平行链专用的cli,因cli默认调用8801端口,需在调用时指定具体的调用端口,由--rpc_laddr= 指定。
跨链转入的bty存在paracross合约中,名称更改为了coins.bty的格式。若转移的是主链token,则名称相应的为token.xxx
## asset_txinfo 根据哈希查询资产转移交易
`cli para asset_txinfo -s 0x82eebee5ad865f42c71794b7842d5cab777f4f01267e4be3d40f3859dfae6f23`
```
{
"from": "19kCYYJnvdsXLUxY5DqKL3yCiweNMzeMxE",
"to": "1B1qDTmQYF48aARKeGY7PNsQtg8nznPp6B",
"txHash": "0x82eebee5ad865f42c71794b7842d5cab777f4f01267e4be3d40f3859dfae6f23",
"amount": 100000000,
"exec": "coins",
"symbol": "BTY",
"height": 4753337,
"commitDoneHeight": 4753339,
"paraHeight": 3506,
"success": true
}
```
## asset_withdraw 取回资产
进行平行链资产取回前,需在平行链的paracross合约中有足额的备转移资产。
`cli para asset_withdraw -a 1 --ptitle user.p.game. -t 1xUdxvnZoBpnWwnUSuNQN9ts3mWi1MZrc`
...
...
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