代码拉取完成,页面将自动刷新
同步操作将从 coin-exchange-all/Exchange-Listing-Guide 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
检查日期: 2020.03.16
https://github.com/OmniLayer/omnicore/releases
https://github.com/OmniLayer/omnicore/wiki
1、获取最新的区块高度
curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:8332/ -u RPC用户:RPC密码 \
-d '{"jsonrpc":"1.0","id":"随便写","method":"getblockcount","params":[]}'
2、获取区块内OMNI的交易列表
curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:8332/ -u RPC用户:RPC密码 \
-d '{"jsonrpc":"1.0","id":"随便写","method":"omni_listblocktransactions","params":[区块高度]}'
3、根据TxId获取具体信息
curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:8332/ -u RPC用户:RPC密码 \
-d '{"jsonrpc":"1.0","id":"随便写","method":"omni_gettransaction","params":["交易TxId"]}'
1、估算当前费用
curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:8332/ -u RPC用户:RPC密码 \
-d '{"jsonrpc":"1.0","id":"随便写","method":"estimatesmartfee","params":[期望多少个区块内到达]}'
2、创建Payload
curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:8332/ -u RPC用户:RPC密码 \
-d '{"jsonrpc":"1.0","id":"随便写","method":"omni_createpayload_simplesend","params":["Token编号(USDT:31)",支出Token数量]}'
3、创建RAW交易
curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:8332/ -u RPC用户:RPC密码 \
-d '{"jsonrpc":"1.0","id":"随便写","method":"createrawtransaction","params":[[{"txid":"输出的Txid","vout":输出的Tx的序号}],{}}'
4、在RAW上加载支出数据
curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:8332/ -u RPC用户:RPC密码 \
-d '{"jsonrpc":"1.0","id":"随便写","method":"omni_createrawtx_opreturn","params":["第3步的结果Hex","第2步的结果Hex"}'
5、在RAW上添加接收者的信息
curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:8332/ -u RPC用户:RPC密码 \
-d '{"jsonrpc":"1.0","id":"随便写","method":"omni_createrawtx_reference","params":["第4步的结果Hex","接收者的地址"]}'
6、在RAW上添加手续费金额和支出BTC信息
curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:8332/ -u RPC用户:RPC密码 \
-d '{"jsonrpc":"1.0","id":"随便写","method":"omni_createrawtx_change","params":["第5步的结果Hex",[{"txid":"输出的Txid","vout":输出的Tx的序号,"scriptPubKey":"输出的收款人公钥"}],"找零收款地址",交易手续费金额]}'
7、导入私钥(如果私钥已在节点上,可跳过)
curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:8332/ -u RPC用户:RPC密码 \
-d '{"jsonrpc":"1.0","id":"随便写","method":"importprivkey","params":["私钥密文","标签(可留空)",false]}'
8、签名RAW交易
curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:8332/ -u RPC用户:RPC密码 \
-d '{"jsonrpc":"1.0","id":"随便写","method":"signrawtransaction","params":["第6步的结果Hex"]}'
9、发送RAW交易
curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:8332/ -u RPC用户:RPC密码 \
-d '{"jsonrpc":"1.0","id":"随便写","method":"sendrawtransaction","params":["完成签名的Hex"]}'
https://github.com/OmniLayer/omniwallet/wiki/Recovering-funds-from-a-Segwit-Address
可以通过以下命令只做一个新的TOKEN然后挂在测试链上:
omnicore-cli omni_sendissuancefixed "本地地址" 2 2 0 "" "" "测试币代码" "" "" "数量"
然后用以下命令来查看新的资产编号
omnicore-cli omni_getallbalancesforaddress "本地地址"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。