Struct bdk::wallet::export::WalletExport [−][src]
Expand description
Structure that contains the export of a wallet
For a usage example see this module’s documentation.
Fields
blockheight: u32
Earliest block to rescan when looking for the wallet’s transactions
label: String
Arbitrary label for the wallet
Implementations
pub fn export_wallet<B, D: BatchDatabase>(
wallet: &Wallet<B, D>,
label: &str,
include_blockheight: bool
) -> Result<Self, &'static str>
pub fn export_wallet<B, D: BatchDatabase>(
wallet: &Wallet<B, D>,
label: &str,
include_blockheight: bool
) -> Result<Self, &'static str>
Export a wallet
This function returns an error if it determines that the wallet
’s descriptor(s) are not
supported by Bitcoin Core or don’t follow the standard derivation paths defined by BIP44
and others.
If include_blockheight
is true
, this function will look into the wallet
’s database
for the oldest transaction it knows and use that as the earliest block to rescan.
If the database is empty or include_blockheight
is false, the blockheight
field
returned will be 0
.
Return the external descriptor
Return the internal descriptor, if present
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for WalletExport
impl Send for WalletExport
impl Sync for WalletExport
impl Unpin for WalletExport
impl UnwindSafe for WalletExport
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V