Struct bdk::wallet::export::FullyNodedExport
source · 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§
source§impl FullyNodedExport
impl FullyNodedExport
sourcepub fn export_wallet<D>(
wallet: &Wallet<D>,
label: &str,
include_blockheight: bool
) -> Result<Self, &'static str>
pub fn export_wallet<D>(
wallet: &Wallet<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
.
sourcepub fn descriptor(&self) -> String
pub fn descriptor(&self) -> String
Return the external descriptor
sourcepub fn change_descriptor(&self) -> Option<String>
pub fn change_descriptor(&self) -> Option<String>
Return the internal descriptor, if present
Trait Implementations§
source§impl Debug for FullyNodedExport
impl Debug for FullyNodedExport
source§impl<'de> Deserialize<'de> for FullyNodedExport
impl<'de> Deserialize<'de> for FullyNodedExport
source§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