요금GitHub대시보드

Dogecoin

createrawtransaction25 크레딧

Creates an unsigned hex-encoded raw transaction

네트워크: doge

매개변수

이름타입설명
inputsObject[]Inputs to spend, each { txid, vout, sequence? }.
outputsObject[]Outputs, each { "<address>": amount_in_BTC } or { "data": "<hex>" }. Addresses must not repeat; at most one data output.
locktimenumberRaw locktime. Default is 0. (선택)
replaceablebooleanMark the transaction as BIP 125 replaceable. Default is false. (선택)

반환값

타입

string

Hex-encoded unsigned raw transaction. It is not stored or broadcast.

코드 예제

curl https://holy-burned-sky-doge-mainnet.rpcnode.dev/7c9e6679-7425-40de-944b-e07fc1f90ae7 \
  -X POST \
  -H 'content-type: application/json' \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "createrawtransaction",
  "params": [
    [
      {
        "txid": "4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b",
        "vout": 0
      }
    ],
    [
      {
        "bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq": 0.01
      }
    ],
    0,
    true
  ]
}'