检查日期: 2020.03.16
https://www.dash.org/downloads/
https://explorer.dash.org/chain/Dash
- 同 BTC - Bitcoin
- 同 BTC - Bitcoin (文件名不同)
- 同 BTC - Bitcoin
- 同 BTC - Bitcoin
- 同 BTC - Bitcoin
- 同 BTC - Bitcoin
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、创建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的序号}],[{"接收地址":接收金额}]}'
3、导入私钥(如果私钥已在节点上,可跳过)
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]}'
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":"signrawtransaction","params":["创建RAW返回的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":"sendrawtransaction","params":["完成签名的Hex"]}'
- 同 BTC - Bitcoin
- 同 BTC - Bitcoin