Commit e9df3a9c authored by 谢昇's avatar 谢昇

Update cli独立模块命令-3(privacy、para).md

parent ef3b43e1
**版本:V6.3.2** **版本:V6.3.2**
...@@ -443,11 +443,14 @@ Total Privacy spend amount is 132.0000 ...@@ -443,11 +443,14 @@ Total Privacy spend amount is 132.0000
``` ```
Available Commands: Available Commands:
asset_transfer Create a asset transfer to para-chain transaction 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 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 blocks Get blocks with main chain hash map between [start, end], the same in main
buffer_block Get para download-level block info buffer_block Get para download-level block info
config parachain config cmd 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 height query consensus height
is_sync query parachain is sync is_sync query parachain is sync
nodegroup super node group manage cmd nodegroup super node group manage cmd
...@@ -456,14 +459,15 @@ Available Commands: ...@@ -456,14 +459,15 @@ Available Commands:
transfer Create a transfer transaction transfer Create a transfer transaction
transfer_exec Create a transfer to exec transaction transfer_exec Create a transfer to exec transaction
withdraw Create a withdraw transaction withdraw Create a withdraw transaction
``` ```
*** ***
## asset_transfer 资产转移 ## asset_transfer 资产转移
进行para资产转移前需在paracross合约中存有足额的资产。 进行para资产转移前需在paracross合约中存有足额的资产。
`cli para asset_transfer --ptitle user.p.game. -a 10 -n test -t 12HKLEn6g4FH39yUbHh4EVJWcFo5CXg22d` `cli para asset_transfer --paraName user.p.game. -a 10 -n test -t 12HKLEn6g4FH39yUbHh4EVJWcFo5CXg22d`
签名并完成发送。 签名并完成发送。
ptitle为目标平行链的标题,注意格式为最后有一点 paraName为目标平行链的标题,注意格式为最后有一点。-s后为资产标志,缺省为bty
通过调用平行链的余额查询,查询余额。 通过调用平行链的余额查询,查询余额。
`cli asset balance -a 12HKLEn6g4FH39yUbHh4EVJWcFo5CXg22d --asset_exec paracross --asset_symbol coins.bty -e paracross --rpc_laddr="http://114.55.11.139:1195"` `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为目标平行链的标题,注意格式为最后有一点。 ...@@ -477,6 +481,24 @@ ptitle为目标平行链的标题,注意格式为最后有一点。
若未编译指定平行链专用的cli,因cli默认调用8801端口,需在调用时指定具体的调用端口,由--rpc_laddr= 指定。 若未编译指定平行链专用的cli,因cli默认调用8801端口,需在调用时指定具体的调用端口,由--rpc_laddr= 指定。
跨链转入的bty存在paracross合约中,名称更改为了coins.bty的格式。若转移的是主链token,则名称相应的为token.xxx 跨链转入的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 取回资产 ## asset_withdraw 取回资产
进行平行链资产取回前,需在平行链的paracross合约中有足额的备转移资产。 进行平行链资产取回前,需在平行链的paracross合约中有足额的备转移资产。
`cli para asset_withdraw -a 1 --ptitle user.p.game. -t 1xUdxvnZoBpnWwnUSuNQN9ts3mWi1MZrc` `cli para asset_withdraw -a 1 --ptitle user.p.game. -t 1xUdxvnZoBpnWwnUSuNQN9ts3mWi1MZrc`
......
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