Enum bdk_wallet::FileStoreError
source · pub enum FileStoreError {
- Load(AggregateChangesetsError<ChangeSet>),
+ Load(AggregateChangesetsError<ChangeSet>),
Write(Error),
-}Expand description
Error for [bdk_file_store]âs implementation of WalletPersister.
Variants§
Load(AggregateChangesetsError<ChangeSet>)
Error when loading from the store.
+}Expand description
Error for bdk_file_storeâs implementation of WalletPersister.
Variants§
Load(AggregateChangesetsError<ChangeSet>)
Error when loading from the store.
Write(Error)
Error when writing to the store.
Trait Implementations§
source§impl Debug for FileStoreError
impl Debug for FileStoreError
source§impl Display for FileStoreError
impl Display for FileStoreError
source§impl Error for FileStoreError
impl Error for FileStoreError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
Auto Trait Implementations§
impl !Freeze for FileStoreError
impl !RefUnwindSafe for FileStoreError
impl Send for FileStoreError
impl Sync for FileStoreError
impl Unpin for FileStoreError
impl !UnwindSafe for FileStoreError
Blanket Implementations§
source§impl<T> Borrow<T> for Twhere
diff --git a/docs/.vuepress/public/docs-rs/bdk/nightly/latest/bdk_wallet/fn.wallet_name_from_descriptor.html b/docs/.vuepress/public/docs-rs/bdk/nightly/latest/bdk_wallet/fn.wallet_name_from_descriptor.html
index 34b9cda08e..dd7c7a62e1 100644
--- a/docs/.vuepress/public/docs-rs/bdk/nightly/latest/bdk_wallet/fn.wallet_name_from_descriptor.html
+++ b/docs/.vuepress/public/docs-rs/bdk/nightly/latest/bdk_wallet/fn.wallet_name_from_descriptor.html
@@ -1,4 +1,4 @@
-wallet_name_from_descriptor in bdk_wallet - Rust Function bdk_wallet::wallet_name_from_descriptor
source · pub fn wallet_name_from_descriptor<T>(
+wallet_name_from_descriptor in bdk_wallet - Rust Function bdk_wallet::wallet_name_from_descriptor
source · pub fn wallet_name_from_descriptor<T>(
descriptor: T,
change_descriptor: Option<T>,
network: Network,
diff --git a/docs/.vuepress/public/docs-rs/bdk/nightly/latest/bdk_wallet/index.html b/docs/.vuepress/public/docs-rs/bdk/nightly/latest/bdk_wallet/index.html
index 745faa20df..d87474ebc6 100644
--- a/docs/.vuepress/public/docs-rs/bdk/nightly/latest/bdk_wallet/index.html
+++ b/docs/.vuepress/public/docs-rs/bdk/nightly/latest/bdk_wallet/index.html
@@ -184,7 +184,7 @@ that the Wallet can use to update its view of the chain.
submitted for inclusion in the work by you, as defined in the Apache-2.0
license, shall be dual licensed as above, without any additional terms or
conditions.
-
Re-exports§
pub extern crate bitcoin;pub extern crate bdk_chain as chain;pub extern crate bdk_file_store as file_store;pub extern crate miniscript;pub extern crate serde;pub extern crate serde_json;pub use descriptor::template;pub use descriptor::HdKeyPaths;pub use signer;pub use bdk_chain::rusqlite;
Modules§
- Coin selection
- Descriptors
- Errors that can be thrown by the
Wallet - Wallet export
- Key formats
- Additional functions on the
rust-bitcoin Psbt structure. - Module for stuff
- Generalized signers
- Transaction builder
Macros§
- Macro to write full descriptors with code
- Macro to write descriptor fragments with code
Structs§
- A derived address and the index it was found at.
-For convenience this automatically derefs to
Address - Balance, differentiated into various categories.
- A changeset for
Wallet. - Parameters for
Wallet::create or PersistedWallet::create. - Parameters for
Wallet::load or PersistedWallet::load. - An unspent output owned by a
Wallet. - Represents a persisted wallet which persists into type
P. - Options for a software signer
- A transaction builder
- An update to
Wallet. - A Bitcoin wallet
- A
Utxo with its satisfaction_weight.
Enums§
- Error returned from
TxBuilder::add_foreign_utxo. - Error returned from
TxBuilder::add_utxo and TxBuilder::add_utxos - An error that may occur when applying a block to
Wallet. - Policy regarding the use of change outputs when creating a transaction
- Error type for
PersistedWallet::create. - Error for [
bdk_file_store]âs implementation of WalletPersister. - Types of keychains
- Represents a mismatch with what is loaded and what is expected from
LoadParams. - Error type for
PersistedWallet::load. - Ordering of the transactionâs inputs and outputs
- An unspent transaction output (UTXO).
Traits§
- Async trait that persists
PersistedWallet. - Trait to check if a value is below the dust limit.
+
Re-exports§
pub extern crate bitcoin;pub extern crate bdk_chain as chain;pub extern crate bdk_file_store as file_store;pub extern crate miniscript;pub extern crate serde;pub extern crate serde_json;pub use descriptor::template;pub use descriptor::HdKeyPaths;pub use signer;pub use bdk_chain::rusqlite;
Modules§
- Coin selection
- Descriptors
- Errors that can be thrown by the
Wallet - Wallet export
- Key formats
- Additional functions on the
rust-bitcoin Psbt structure. - Module for stuff
- Generalized signers
- Transaction builder
Macros§
- Macro to write full descriptors with code
- Macro to write descriptor fragments with code
Structs§
- A derived address and the index it was found at.
+For convenience this automatically derefs to
Address - Balance, differentiated into various categories.
- A changeset for
Wallet. - Parameters for
Wallet::create or PersistedWallet::create. - Parameters for
Wallet::load or PersistedWallet::load. - An unspent output owned by a
Wallet. - Represents a persisted wallet which persists into type
P. - Options for a software signer
- A transaction builder
- An update to
Wallet. - A Bitcoin wallet
- A
Utxo with its satisfaction_weight.
Enums§
- Error returned from
TxBuilder::add_foreign_utxo. - Error returned from
TxBuilder::add_utxo and TxBuilder::add_utxos - An error that may occur when applying a block to
Wallet. - Policy regarding the use of change outputs when creating a transaction
- Error type for
PersistedWallet::create. - Error for
bdk_file_storeâs implementation of WalletPersister. - Types of keychains
- Represents a mismatch with what is loaded and what is expected from
LoadParams. - Error type for
PersistedWallet::load. - Ordering of the transactionâs inputs and outputs
- An unspent transaction output (UTXO).
Traits§
- Async trait that persists
PersistedWallet. - 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
- Trait that persists
PersistedWallet.
Functions§
- Get the version of
bdk_wallet at runtime. - Deterministically generate a unique name given the descriptors defining the wallet
Type Aliases§
- A
CanonicalTx managed by a Wallet.
\ No newline at end of file
diff --git a/docs/.vuepress/public/docs-rs/bdk/nightly/latest/bdk_wallet/struct.PersistedWallet.html b/docs/.vuepress/public/docs-rs/bdk/nightly/latest/bdk_wallet/struct.PersistedWallet.html
index b44d06a02a..9625d63615 100644
--- a/docs/.vuepress/public/docs-rs/bdk/nightly/latest/bdk_wallet/struct.PersistedWallet.html
+++ b/docs/.vuepress/public/docs-rs/bdk/nightly/latest/bdk_wallet/struct.PersistedWallet.html
@@ -39,16 +39,16 @@ connected to different databases.
) -> Result<bool, P::Error>Persist staged changes of wallet into an async persister.
Returns whether any new changes were persisted.
If the persister errors, the staged changes will not be cleared.
-
impl<T> Borrow<T> for Twhere
diff --git a/docs/.vuepress/public/docs-rs/bdk/nightly/latest/bdk_wallet/fn.wallet_name_from_descriptor.html b/docs/.vuepress/public/docs-rs/bdk/nightly/latest/bdk_wallet/fn.wallet_name_from_descriptor.html
index 34b9cda08e..dd7c7a62e1 100644
--- a/docs/.vuepress/public/docs-rs/bdk/nightly/latest/bdk_wallet/fn.wallet_name_from_descriptor.html
+++ b/docs/.vuepress/public/docs-rs/bdk/nightly/latest/bdk_wallet/fn.wallet_name_from_descriptor.html
@@ -1,4 +1,4 @@
-wallet_name_from_descriptor in bdk_wallet - Rust Function bdk_wallet::wallet_name_from_descriptor
source · pub fn wallet_name_from_descriptor<T>(
+wallet_name_from_descriptor in bdk_wallet - Rust Function bdk_wallet::wallet_name_from_descriptor
source · pub fn wallet_name_from_descriptor<T>(
descriptor: T,
change_descriptor: Option<T>,
network: Network,
diff --git a/docs/.vuepress/public/docs-rs/bdk/nightly/latest/bdk_wallet/index.html b/docs/.vuepress/public/docs-rs/bdk/nightly/latest/bdk_wallet/index.html
index 745faa20df..d87474ebc6 100644
--- a/docs/.vuepress/public/docs-rs/bdk/nightly/latest/bdk_wallet/index.html
+++ b/docs/.vuepress/public/docs-rs/bdk/nightly/latest/bdk_wallet/index.html
@@ -184,7 +184,7 @@ that the Wallet can use to update its view of the chain.
submitted for inclusion in the work by you, as defined in the Apache-2.0
license, shall be dual licensed as above, without any additional terms or
conditions.
-
Re-exports§
pub extern crate bitcoin;pub extern crate bdk_chain as chain;pub extern crate bdk_file_store as file_store;pub extern crate miniscript;pub extern crate serde;pub extern crate serde_json;pub use descriptor::template;pub use descriptor::HdKeyPaths;pub use signer;pub use bdk_chain::rusqlite;
Modules§
- Coin selection
- Descriptors
- Errors that can be thrown by the
Wallet - Wallet export
- Key formats
- Additional functions on the
rust-bitcoin Psbt structure. - Module for stuff
- Generalized signers
- Transaction builder
Macros§
- Macro to write full descriptors with code
- Macro to write descriptor fragments with code
Structs§
- A derived address and the index it was found at.
-For convenience this automatically derefs to
Address - Balance, differentiated into various categories.
- A changeset for
Wallet. - Parameters for
Wallet::create or PersistedWallet::create. - Parameters for
Wallet::load or PersistedWallet::load. - An unspent output owned by a
Wallet. - Represents a persisted wallet which persists into type
P. - Options for a software signer
- A transaction builder
- An update to
Wallet. - A Bitcoin wallet
- A
Utxo with its satisfaction_weight.
Enums§
- Error returned from
TxBuilder::add_foreign_utxo. - Error returned from
TxBuilder::add_utxo and TxBuilder::add_utxos - An error that may occur when applying a block to
Wallet. - Policy regarding the use of change outputs when creating a transaction
- Error type for
PersistedWallet::create. - Error for [
bdk_file_store]âs implementation of WalletPersister. - Types of keychains
- Represents a mismatch with what is loaded and what is expected from
LoadParams. - Error type for
PersistedWallet::load. - Ordering of the transactionâs inputs and outputs
- An unspent transaction output (UTXO).
Traits§
- Async trait that persists
PersistedWallet. - Trait to check if a value is below the dust limit.
+
Re-exports§
pub extern crate bitcoin;pub extern crate bdk_chain as chain;pub extern crate bdk_file_store as file_store;pub extern crate miniscript;pub extern crate serde;pub extern crate serde_json;pub use descriptor::template;pub use descriptor::HdKeyPaths;pub use signer;pub use bdk_chain::rusqlite;
Modules§
- Coin selection
- Descriptors
- Errors that can be thrown by the
Wallet - Wallet export
- Key formats
- Additional functions on the
rust-bitcoin Psbt structure. - Module for stuff
- Generalized signers
- Transaction builder
Macros§
- Macro to write full descriptors with code
- Macro to write descriptor fragments with code
Structs§
- A derived address and the index it was found at.
+For convenience this automatically derefs to
Address - Balance, differentiated into various categories.
- A changeset for
Wallet. - Parameters for
Wallet::create or PersistedWallet::create. - Parameters for
Wallet::load or PersistedWallet::load. - An unspent output owned by a
Wallet. - Represents a persisted wallet which persists into type
P. - Options for a software signer
- A transaction builder
- An update to
Wallet. - A Bitcoin wallet
- A
Utxo with its satisfaction_weight.
Enums§
- Error returned from
TxBuilder::add_foreign_utxo. - Error returned from
TxBuilder::add_utxo and TxBuilder::add_utxos - An error that may occur when applying a block to
Wallet. - Policy regarding the use of change outputs when creating a transaction
- Error type for
PersistedWallet::create. - Error for
bdk_file_storeâs implementation of WalletPersister. - Types of keychains
- Represents a mismatch with what is loaded and what is expected from
LoadParams. - Error type for
PersistedWallet::load. - Ordering of the transactionâs inputs and outputs
- An unspent transaction output (UTXO).
Traits§
- Async trait that persists
PersistedWallet. - 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
- Trait that persists
PersistedWallet.
Functions§
- Get the version of
bdk_wallet at runtime. - Deterministically generate a unique name given the descriptors defining the wallet
Type Aliases§
- A
CanonicalTx managed by a Wallet.
\ No newline at end of file
diff --git a/docs/.vuepress/public/docs-rs/bdk/nightly/latest/bdk_wallet/struct.PersistedWallet.html b/docs/.vuepress/public/docs-rs/bdk/nightly/latest/bdk_wallet/struct.PersistedWallet.html
index b44d06a02a..9625d63615 100644
--- a/docs/.vuepress/public/docs-rs/bdk/nightly/latest/bdk_wallet/struct.PersistedWallet.html
+++ b/docs/.vuepress/public/docs-rs/bdk/nightly/latest/bdk_wallet/struct.PersistedWallet.html
@@ -39,16 +39,16 @@ connected to different databases.
) -> Result<bool, P::Error>Persist staged changes of wallet into an async persister.
Returns whether any new changes were persisted.
If the persister errors, the staged changes will not be cleared.
-
Function bdk_wallet::wallet_name_from_descriptor
source · pub fn wallet_name_from_descriptor<T>(
+wallet_name_from_descriptor in bdk_wallet - Rust Function bdk_wallet::wallet_name_from_descriptor
source · pub fn wallet_name_from_descriptor<T>(
descriptor: T,
change_descriptor: Option<T>,
network: Network,
diff --git a/docs/.vuepress/public/docs-rs/bdk/nightly/latest/bdk_wallet/index.html b/docs/.vuepress/public/docs-rs/bdk/nightly/latest/bdk_wallet/index.html
index 745faa20df..d87474ebc6 100644
--- a/docs/.vuepress/public/docs-rs/bdk/nightly/latest/bdk_wallet/index.html
+++ b/docs/.vuepress/public/docs-rs/bdk/nightly/latest/bdk_wallet/index.html
@@ -184,7 +184,7 @@ that the Wallet can use to update its view of the chain.
submitted for inclusion in the work by you, as defined in the Apache-2.0
license, shall be dual licensed as above, without any additional terms or
conditions.
-
Re-exports§
pub extern crate bitcoin;pub extern crate bdk_chain as chain;pub extern crate bdk_file_store as file_store;pub extern crate miniscript;pub extern crate serde;pub extern crate serde_json;pub use descriptor::template;pub use descriptor::HdKeyPaths;pub use signer;pub use bdk_chain::rusqlite;
Modules§
- Coin selection
- Descriptors
- Errors that can be thrown by the
Wallet - Wallet export
- Key formats
- Additional functions on the
rust-bitcoin Psbt structure. - Module for stuff
- Generalized signers
- Transaction builder
Macros§
- Macro to write full descriptors with code
- Macro to write descriptor fragments with code
Structs§
- A derived address and the index it was found at.
-For convenience this automatically derefs to
Address - Balance, differentiated into various categories.
- A changeset for
Wallet. - Parameters for
Wallet::create or PersistedWallet::create. - Parameters for
Wallet::load or PersistedWallet::load. - An unspent output owned by a
Wallet. - Represents a persisted wallet which persists into type
P. - Options for a software signer
- A transaction builder
- An update to
Wallet. - A Bitcoin wallet
- A
Utxo with its satisfaction_weight.
Enums§
- Error returned from
TxBuilder::add_foreign_utxo. - Error returned from
TxBuilder::add_utxo and TxBuilder::add_utxos - An error that may occur when applying a block to
Wallet. - Policy regarding the use of change outputs when creating a transaction
- Error type for
PersistedWallet::create. - Error for [
bdk_file_store]âs implementation of WalletPersister. - Types of keychains
- Represents a mismatch with what is loaded and what is expected from
LoadParams. - Error type for
PersistedWallet::load. - Ordering of the transactionâs inputs and outputs
- An unspent transaction output (UTXO).
Traits§
- Async trait that persists
PersistedWallet. - Trait to check if a value is below the dust limit.
+
Re-exports§
pub extern crate bitcoin;pub extern crate bdk_chain as chain;pub extern crate bdk_file_store as file_store;pub extern crate miniscript;pub extern crate serde;pub extern crate serde_json;pub use descriptor::template;pub use descriptor::HdKeyPaths;pub use signer;pub use bdk_chain::rusqlite;
Modules§
- Coin selection
- Descriptors
- Errors that can be thrown by the
Wallet - Wallet export
- Key formats
- Additional functions on the
rust-bitcoin Psbt structure. - Module for stuff
- Generalized signers
- Transaction builder
Macros§
- Macro to write full descriptors with code
- Macro to write descriptor fragments with code
Structs§
- A derived address and the index it was found at.
+For convenience this automatically derefs to
Address - Balance, differentiated into various categories.
- A changeset for
Wallet. - Parameters for
Wallet::create or PersistedWallet::create. - Parameters for
Wallet::load or PersistedWallet::load. - An unspent output owned by a
Wallet. - Represents a persisted wallet which persists into type
P. - Options for a software signer
- A transaction builder
- An update to
Wallet. - A Bitcoin wallet
- A
Utxo with its satisfaction_weight.
Enums§
- Error returned from
TxBuilder::add_foreign_utxo. - Error returned from
TxBuilder::add_utxo and TxBuilder::add_utxos - An error that may occur when applying a block to
Wallet. - Policy regarding the use of change outputs when creating a transaction
- Error type for
PersistedWallet::create. - Error for
bdk_file_storeâs implementation of WalletPersister. - Types of keychains
- Represents a mismatch with what is loaded and what is expected from
LoadParams. - Error type for
PersistedWallet::load. - Ordering of the transactionâs inputs and outputs
- An unspent transaction output (UTXO).
Traits§
- Async trait that persists
PersistedWallet. - 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
- Trait that persists
PersistedWallet.
Functions§
- Get the version of
bdk_wallet at runtime. - Deterministically generate a unique name given the descriptors defining the wallet
Type Aliases§
- A
CanonicalTx managed by a Wallet.
Persist staged changes of wallet into an async persister.
Returns whether any new changes were persisted.
If the persister errors, the staged changes will not be cleared.
Methods from Deref<Target = Wallet>§
Methods from Deref<Target = Wallet>§
sourcepub fn keychains(
&self
) -> impl Iterator<Item = (KeychainKind, &ExtendedDescriptor)>
pub fn keychains( &self ) -> impl Iterator<Item = (KeychainKind, &ExtendedDescriptor)>
Iterator over all keychains in this wallet
-sourcepub fn peek_address(&self, keychain: KeychainKind, index: u32) -> AddressInfo
pub fn peek_address(&self, keychain: KeychainKind, index: u32) -> AddressInfo
Peek an address of the given keychain at index without revealing it.
sourcepub fn peek_address(&self, keychain: KeychainKind, index: u32) -> AddressInfo
pub fn peek_address(&self, keychain: KeychainKind, index: u32) -> AddressInfo
sourcepub fn reveal_next_address(&mut self, keychain: KeychainKind) -> AddressInfo
pub fn reveal_next_address(&mut self, keychain: KeychainKind) -> AddressInfo
Attempt to reveal the next address of the given keychain.
sourcepub fn reveal_next_address(&mut self, keychain: KeychainKind) -> AddressInfo
pub fn reveal_next_address(&mut self, keychain: KeychainKind) -> AddressInfo
Attempt to reveal the next address of the given keychain.
This will increment the keychainâs derivation index. If the keychainâs descriptor doesnât contain a wildcard or every address is already revealed up to the maximum derivation index defined in BIP32, @@ -67,7 +67,7 @@ wallet.persist(&mut conn).expect(// Now it's safe to show the user their next address! println!("Next address: {}", next_address.address);