[−][src]Struct bdk::wallet::export::WalletExport
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
impl WalletExport
[src][−]
pub fn export_wallet<B: BlockchainMarker, D: BatchDatabase>(
wallet: &Wallet<B, D>,
label: &str,
include_blockheight: bool
) -> Result<Self, &'static str>
[src][−]
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
.
pub fn descriptor(&self) -> String
[src][−]
Return the external descriptor
pub fn change_descriptor(&self) -> Option<String>
[src][−]
Return the internal descriptor, if present
Trait Implementations
impl Debug for WalletExport
[src][+]
impl<'de> Deserialize<'de> for WalletExport
[src][+]
impl FromStr for WalletExport
[src][+]
impl Serialize for WalletExport
[src][+]
impl ToString for WalletExport
[src][+]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src][+]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[+]
V: MultiLane<T>,