Wallet
A Bitcoin wallet. The Wallet acts as a way of coherently interfacing with output descriptors and related transactions. Its main components are:
Output descriptors from which it can derive addresses.
A Database where it tracks transactions and utxos related to the descriptors.
Signers that can contribute signatures to addresses instantiated from the descriptors.
Parameters
The main (or "external") descriptor.
The change (or "internal") descriptor.
The network to act on.
The database configuration.
Constructors
Functions
Return a derived address using the external descriptor, see AddressIndex for available address index selection strategies. If none of the keys in the descriptor are derivable (i.e. the descriptor does not end with a * character) then the same address will always be returned for any AddressIndex.
Return the balance, meaning the sum of this wallet’s unspent outputs’ values. Note that this method only operates on the internal database, which first needs to be Wallet.sync manually.
Return the list of transactions made and received by the wallet. Note that this method only operate on the internal database, which first needs to be Wallet.sync manually.
Return the list of unspent outputs of this wallet. Note that this method only operates on the internal database, which first needs to be Wallet.sync manually.
Sign a transaction with all the wallet’s signers.
Sync the internal database with the blockchain.