Dash
createpsbt25 créditos
Creates a transaction in the Partially Signed Transaction format
Parámetros
| Nombre | Tipo | Descripción |
|---|---|---|
| inputs | Object[] | Inputs to spend, each { txid, vout, sequence? }. |
| outputs | Object[] | Outputs, each { "<address>": amount_in_BTC } or { "data": "<hex>" }. Addresses must not repeat; at most one data output. |
| locktime | number | Raw locktime. Default is 0. (opcional) |
| replaceable | boolean | Mark the transaction as BIP 125 replaceable. Default is false. (opcional) |
Valor devuelto
Tipo
string
Base64-encoded PSBT.
Ejemplos de código
curl https://holy-burned-sky-dash-mainnet.rpcnode.dev/7c9e6679-7425-40de-944b-e07fc1f90ae7 \
-X POST \
-H 'content-type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "createpsbt",
"params": [
[
{
"txid": "4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b",
"vout": 0
}
],
[
{
"bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq": 0.01
}
],
0,
true
]
}'