FULL NAME
SUBJECT
Customer Support
Customer Support
Business / Sales
Partnership
Feedback
Demo Request
Other
TEXT MESSAGE
0/300
⚡ We welcome businesses to test our enterprise-grade service
Method: POST signrawtransaction
用于原始交易的符号输入(序列化,编码)。
hexstring
- 细绳
交易的十六进制字符串要签名。
previous_transactions
- dict清单
选修的
表格的字典列表:{“ txid”:txid,“ vout”:n,“ scriptpubkey”:hex,“ edeemscript”:hex}表示此交易取决于此事务的先前交易输出,但可能还不在块链中 。
private_keys
- 字符串列表
选修的
基本58编码的私钥列表,如果给出,它将是签署交易的唯一密钥。
curl --location --request POST 'https://doge.getblock.io/mainnet/' \ --header 'x-api-key: YOUR-API-KEY' \ --header 'Content-Type: application/json' \ --data-raw '{"jsonrpc": "2.0", "method": "signrawtransaction", "params": [null, [{"txid": "10c03013c4feadd7d2e0d948240771dbbc220152d12c3ab7628a40a7f827f658", "vout": 10, "scriptPubKey": "hexencodedscriptpubkey", "redeemscript": "hexencodedredeemscript"}, {"txid": "10c01013c4feadd7d2e0d948240771dbbc220152d12c3ab7628a40a7f827f658", "vout": 1, "scriptPubKey": "hexencodedscriptpubkey", "redeemscript": "hexencodedredeemscript"}], null], "id": "getblock.io"}'
{ "error": null, "id": "getblock.io", "result": null }