Zcash
createpsbt8 crédits
Crée une transaction au format Partially Signed Transaction
Paramètres
| Nom | Type | Description |
|---|---|---|
| inputs | Object[] | Entrées à dépenser, chacune { txid, vout, sequence? }. |
| outputs | Object[] | Sorties, chacune { "<address>": amount_in_BTC } ou { "data": "<hex>" }. Les adresses ne doivent pas se répéter ; au plus une sortie data. |
| locktime | number | Locktime brut. Par défaut 0. (facultatif) |
| replaceable | boolean | Marque la transaction comme remplaçable (BIP 125). Par défaut false. (facultatif) |
Valeur renvoyée
Type
string
PSBT encodé en base64.
Exemples de code
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": "createpsbt",
"params": [
[
{
"txid": "4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b",
"vout": 0
}
],
[
{
"bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq": 0.01
}
],
0,
true
]
}'