📝 Share Your Feedback on Twitter and Claim 1M Free GetBlock Requests

doge
DogeCoin (DOGE)

Method: POST createrawtransaction

dropdown

方法 RPC createrawtransaction 例如 DogeCoin (DOGE)

POST createrawtransaction

创建给定输入的原始事务支出(字典列表,每个包含事务ID和输出号),发送到给定的地址。

Parameters

inputs - dict清单

{“ txid”:txid,“ vout”:n}字典的列表。

outputs - dict

词典映射(公共)地址为他们要支付的金额。

Request

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": "createrawtransaction",
"params": [[{"txid": "txidone", "vout": 100}, {"txid": "txidtwo", "vout": 10}], {"addressone": 10, "addresstwo": 100}],
"id": "getblock.io"}'


Response

{
    "error": null,
    "id": "getblock.io",
    "result": null
}