utxoupdatepsbt
utxoupdatepsbt "psbt" ( ["",{"desc":"str","range":n or [n,n]},...] ) Updates all segwit inputs and outputs in a PSBT with data from output descriptors, the UTXO set, txindex, or the mempool. Arguments: 1. psbt (string, required) A base64 string of a PSBT 2. descriptors (json array, optional) An array of either strings or objects [ "", (string) An output descriptor { (json object) An object with an output descriptor and extra information "desc": "str", (string, required) An output descriptor "range": n or [n,n], (numeric or array, optional, default=1000) Up to what index HD chains should be explored (either end or [begin,end]) }, ... ] Result: "str" (string) The base64-encoded partially signed transaction with inputs updated Examples: > bitcoin-cli utxoupdatepsbt "psbt"
Signature
utxoupdatepsbt(psbt: string, descriptors?: array) → any Code samples
curl --user "$RPC_USER:$RPC_PASS" \
--data-binary '{"jsonrpc":"1.0","id":"docs","method":"utxoupdatepsbt","params":["\"<psbt>\"",[]]}' \
-H 'content-type: text/plain;' \
http://127.0.0.1:8332/ Parameters
| Name | Type | Req. | Description |
|---|---|---|---|
| psbt | string | yes | A base64 string of a PSBT |
| descriptors | any[] | — | An array of either strings or objects [ "", (string) An output descriptor { (json object) An object with an output descriptor and extra information "desc": "str", (string, required) An output descriptor "range": n or [n,n], (numeric or array, optional, default=1000) Up to what index HD chains should be explored (either end or [begin,end]) }, ... ] |
Result
Type: any
"str" (string) The base64-encoded partially signed transaction with inputs updated
Source: services/core-node/bcore/src/rpc/rawtransaction.cpp:4433
C++ symbol: utxoupdatepsbt