utxoupdatepsbt

rawtransactions safe since 0.18.0

updates all segwit inputs and outputs in a PSBT with data from output descriptors, the UTXO set or the mempool.

Share: X Bluesky Mastodon Reddit HN
↑ shares the docs page. Use Share this query below for a link with your current arg values.
Run this RPC switch to raw JSON
A base64 string of a PSBT
An array of either strings or objects
running...
Signature: "psbt" ( [",{"desc":"str","range":n or [n,n]},...] )
Call from your own code

Replace $BITCOIN_RPC_USER / $BITCOIN_RPC_PASSWORD with credentials from your bitcoind's bitcoin.conf, and replace localhost:8332 with your node's RPC address.

Help

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 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"
← back to all RPCs