[−][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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl FromStr for WalletExport
[src]
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl Serialize for WalletExport
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
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,
fn borrow_mut(&mut self) -> &mut T
[src]
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>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,