mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 20:12:57 +01:00
Merge #15757: List new RPCs in psbt.md and descriptors.md
9b085f4863eaefde4bec0638f1cbc8509d6ee59a Mention new descriptor RPCs in descriptors.md (Pieter Wuille) 28d78de00bf49c6efc19f0edeef2a03d039752a1 Mention new PSBT RPCs in psbt.md (Pieter Wuille) Pull request description: The documentation in `psbt.md` and `descriptors.md` does not list new and updated RPCs (`analyzepsbt`, `utxoupdatepsbt`, `joinpsbts`, `deriveaddresses`, `getdescriptorinfo`, `listunspent`). Fix this. It'd be good to have this in 0.18 (only documentation). ACKs for commit 9b085f: fanquake: utACK 9b085f4 Tree-SHA512: ee16907e8c15351a530f11fc0a585c50835a7bf5aec997ac0e897949d9b9e41a28ddebbeaba69753fee7d2de75e518091518185085fcd1f6ada94b7231097b2e
This commit is contained in:
parent
db312c361e
commit
e6a2d2b071
@ -1,11 +1,18 @@
|
|||||||
# Support for Output Descriptors in Dash Core
|
# Support for Output Descriptors in Dash Core
|
||||||
|
|
||||||
Since Dash Core v0.17, there is support for Output Descriptors in the
|
Since Dash Core v0.17, there is support for Output Descriptors. This is a
|
||||||
`scantxoutset` RPC call. This is a simple language which can be used to
|
simple language which can be used to describe collections of output scripts.
|
||||||
describe collections of output scripts.
|
Supporting RPCs are:
|
||||||
|
- `scantxoutset` takes as input descriptors to scan for, and also reports
|
||||||
|
specialized descriptors for the matching UTXOs.
|
||||||
|
- `getdescriptorinfo` analyzes a descriptor, and reports a canonicalized version
|
||||||
|
with checksum added.
|
||||||
|
- `deriveaddresses` takes as input a descriptor and computes the corresponding
|
||||||
|
addresses.
|
||||||
|
- `listunspent` outputs a specialized descriptor for the reported unspent outputs.
|
||||||
|
|
||||||
This document describes the language. For the specifics on usage for scanning
|
This document describes the language. For the specifics on usage, see the RPC
|
||||||
the UTXO set, see the `scantxoutset` RPC help.
|
documentation for the functions mentioned above.
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
|
@ -67,6 +67,9 @@ hardware implementations will typically implement multiple roles simultaneously.
|
|||||||
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`.
|
||||||
@ -74,6 +77,9 @@ hardware implementations will typically implement multiple roles simultaneously.
|
|||||||
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.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user