Zcash
createrawtransaction8 Credits
Erstellt eine unsignierte hexkodierte Rohtransaktion
Parameter
| Name | Typ | Beschreibung |
|---|---|---|
| inputs | Object[] | Auszugebende Inputs, jeweils { txid, vout, sequence? }. |
| outputs | Object[] | Outputs, jeweils { "<address>": amount_in_BTC } oder { "data": "<hex>" }. Adressen dürfen sich nicht wiederholen; höchstens ein data-Output. |
| locktime | number | Rohe Locktime. Standard ist 0. (optional) |
| replaceable | boolean | Transaktion als BIP-125-ersetzbar markieren. Standard ist false. (optional) |
Rückgabewert
Typ
string
Hexkodierte unsignierte Rohtransaktion. Sie wird weder gespeichert noch gesendet.
Codebeispiele
curl https://holy-burned-sky-zcash-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
]
}'