Module bdk::wallet

source ·
Expand description


This module defines the Wallet structure.


Coin selection
Wallet export
Generalized signers
Transaction builder


A derived address and the index it was found at. For convenience this automatically derefs to Address
Balance, differentiated into various categories.
A Bitcoin wallet


The address index selection strategy to use to derived an address from the wallet’s external descriptor. See Wallet::get_address. If you’re unsure which one to use use WalletIndex::New.
Error returned from Wallet::new


Trait to check if a value is below the dust limit. We are performing dust value calculation for a given script public key using rust-bitcoin to keep it compatible with network dust rate


Deterministically generate a unique name given the descriptors defining the wallet

Type Definitions

The update to a Wallet used in Wallet::apply_update. This is usually returned from blockchain data sources. The type parameter T indicates the kind of transaction contained in the update. It’s usually a [bitcoin::Transaction].
Error indicating that something was wrong with an Update<T>.