[−][src]Struct bitcoin_harness::wallet::Wallet
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]
&'_ self,
address: Address,
amount: Amount
) -> Result<Txid>
pub async fn send_raw_transaction<'_>(
&'_ self,
transaction: Transaction
) -> Result<Txid>
[src]
&'_ self,
transaction: Transaction
) -> Result<Txid>
pub async fn get_raw_transaction<'_>(
&'_ self,
txid: Txid
) -> Result<Transaction>
[src]
&'_ self,
txid: Txid
) -> Result<Transaction>
pub async fn get_wallet_transaction<'_>(
&'_ self,
txid: Txid
) -> Result<WalletTransactionInfo>
[src]
&'_ self,
txid: Txid
) -> Result<WalletTransactionInfo>
pub async fn address_info<'_, '_>(
&'_ self,
address: &'_ Address
) -> Result<AddressInfo>
[src]
&'_ self,
address: &'_ Address
) -> Result<AddressInfo>
pub async fn list_unspent<'_>(&'_ self) -> Result<Vec<Unspent>>
[src]
pub async fn fund_psbt<'_>(
&'_ self,
address: Address,
amount: Amount
) -> Result<String>
[src]
&'_ self,
address: Address,
amount: Amount
) -> Result<String>
pub async fn join_psbts<'_, '_>(
&'_ self,
psbts: &'_ [String]
) -> Result<PsbtBase64>
[src]
&'_ self,
psbts: &'_ [String]
) -> Result<PsbtBase64>
pub async fn wallet_process_psbt<'_>(
&'_ self,
psbt: PsbtBase64
) -> Result<ProcessedPsbt>
[src]
&'_ self,
psbt: PsbtBase64
) -> Result<ProcessedPsbt>
pub async fn finalize_psbt<'_>(
&'_ self,
psbt: PsbtBase64
) -> Result<FinalizedPsbt>
[src]
&'_ self,
psbt: PsbtBase64
) -> Result<FinalizedPsbt>
pub async fn transaction_block_height<'_>(
&'_ self,
txid: Txid
) -> Result<Option<u32>>
[src]
&'_ self,
txid: Txid
) -> Result<Option<u32>>
Trait Implementations
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]
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub 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.
pub 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>,