[][src]Struct bitcoin_harness::wallet::Wallet

pub struct Wallet { /* fields omitted */ }

A wrapper to bitcoind wallet

Implementations

impl Wallet[src]

pub async fn new<'_>(name: &'_ str, url: Url) -> Result<Self>[src]

Create a wallet on the bitcoind instance or use the wallet with the same name if it exists.

pub async fn info<'_>(&'_ self) -> Result<WalletInfoResponse>[src]

pub async fn median_time<'_>(&'_ self) -> Result<u32>[src]

pub async fn block_height<'_>(&'_ self) -> Result<u32>[src]

pub async fn new_address<'_>(&'_ self) -> Result<Address>[src]

pub async fn balance<'_>(&'_ self) -> Result<Amount>[src]

pub async fn send_to_address<'_>(
    &'_ self,
    address: Address,
    amount: Amount
) -> Result<Txid>
[src]

pub async fn send_raw_transaction<'_>(
    &'_ self,
    transaction: Transaction
) -> Result<Txid>
[src]

pub async fn get_raw_transaction<'_>(
    &'_ self,
    txid: Txid
) -> Result<Transaction>
[src]

pub async fn get_wallet_transaction<'_>(
    &'_ self,
    txid: Txid
) -> Result<WalletTransactionInfo>
[src]

pub async fn address_info<'_, '_>(
    &'_ self,
    address: &'_ Address
) -> Result<AddressInfo>
[src]

pub async fn list_unspent<'_>(&'_ self) -> Result<Vec<Unspent>>[src]

pub async fn fund_psbt<'_>(
    &'_ self,
    address: Address,
    amount: Amount
) -> Result<String>
[src]

pub async fn join_psbts<'_, '_>(
    &'_ self,
    psbts: &'_ [String]
) -> Result<PsbtBase64>
[src]

pub async fn wallet_process_psbt<'_>(
    &'_ self,
    psbt: PsbtBase64
) -> Result<ProcessedPsbt>
[src]

pub async fn finalize_psbt<'_>(
    &'_ self,
    psbt: PsbtBase64
) -> Result<FinalizedPsbt>
[src]

pub async fn transaction_block_height<'_>(
    &'_ self,
    txid: Txid
) -> Result<Option<u32>>
[src]

Trait Implementations

impl Debug for Wallet[src]

Auto Trait Implementations

impl !RefUnwindSafe for Wallet

impl Send for Wallet

impl Sync for Wallet

impl Unpin for Wallet

impl !UnwindSafe for Wallet

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,