Changeset View
Changeset View
Standalone View
Standalone View
doc/psbt.md
Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | - **`walletcreatefundedpsbt` (Creator, Updater)** is a wallet RPC that creates a | ||||
balance), UTXO information will be added. For outputs and inputs with UTXO | balance), UTXO information will be added. For outputs and inputs with UTXO | ||||
information present, key and script information will be added which the wallet | information present, key and script information will be added which the wallet | ||||
knows about. It is equivalent to running `createrawtransaction`, followed by | knows about. It is equivalent to running `createrawtransaction`, followed by | ||||
`fundrawtransaction`, and `converttopsbt`. | `fundrawtransaction`, and `converttopsbt`. | ||||
- **`walletprocesspsbt` (Updater, Signer, Finalizer)** is a wallet RPC that takes as | - **`walletprocesspsbt` (Updater, Signer, Finalizer)** is a wallet RPC that takes as | ||||
input a PSBT, adds UTXO, key, and script data to inputs and outputs that miss | input a PSBT, adds UTXO, key, and script data to inputs and outputs that miss | ||||
it, and optionally signs inputs. Where possible it also finalizes the partial | it, and optionally signs inputs. Where possible it also finalizes the partial | ||||
signatures. | signatures. | ||||
- **`utxoupdatepsbt` (Updater)** is a node RPC that takes a PSBT and updates it | |||||
to include information available from the UTXO set (works only for SegWit | |||||
inputs). | |||||
- **`finalizepsbt` (Finalizer, Extractor)** is a utility RPC that finalizes any | - **`finalizepsbt` (Finalizer, Extractor)** is a utility RPC that finalizes any | ||||
partial signatures, and if all inputs are finalized, converts the result to a | partial signatures, and if all inputs are finalized, converts the result to a | ||||
fully signed transaction which can be broadcast with `sendrawtransaction`. | fully signed transaction which can be broadcast with `sendrawtransaction`. | ||||
- **`combinepsbt` (Combiner)** is a utility RPC that implements a Combiner. It | - **`combinepsbt` (Combiner)** is a utility RPC that implements a Combiner. It | ||||
can be used at any point in the workflow to merge information added to | can be used at any point in the workflow to merge information added to | ||||
different versions of the same PSBT. In particular it is useful to combine the | different versions of the same PSBT. In particular it is useful to combine the | ||||
output of multiple Updaters or Signers. | output of multiple Updaters or Signers. | ||||
- **`joinpsbts`** (Creator) is a utility RPC that joins multiple PSBTs together, | |||||
concatenating the inputs and outputs. This can be used to construct CoinJoin | |||||
transactions. | |||||
- **`decodepsbt`** is a diagnostic utility RPC which will show all information in | - **`decodepsbt`** is a diagnostic utility RPC which will show all information in | ||||
a PSBT in human-readable form, as well as compute its eventual fee if known. | a PSBT in human-readable form, as well as compute its eventual fee if known. | ||||
- **`analyzepsbt`** is a utility RPC that examines a PSBT and reports the | |||||
current status of its inputs, the next step in the workflow if known, and if | |||||
possible, computes the fee of the resulting transaction and estimates the | |||||
final weight and feerate. | |||||
### Workflows | ### Workflows | ||||
#### Multisig with multiple Bitcoin ABC instances | #### Multisig with multiple Bitcoin ABC instances | ||||
Alice, Bob, and Carol want to create a 2-of-3 multisig address. They're all using | Alice, Bob, and Carol want to create a 2-of-3 multisig address. They're all using | ||||
Bitcoin ABC. We assume their wallets only contain the multisig funds. In case | Bitcoin ABC. We assume their wallets only contain the multisig funds. In case | ||||
they also have a personal wallet, this can be accomplished through the | they also have a personal wallet, this can be accomplished through the | ||||
▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines |