[][src]Struct bitcoin_harness::bitcoind_rpc::Client

pub struct Client { /* fields omitted */ }

Implementations

impl Client[src]

pub fn new(url: Url) -> Self[src]

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

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

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

pub async fn create_wallet<'_, '_>(
    &'_ self,
    wallet_name: &'_ str,
    disable_private_keys: Option<bool>,
    blank: Option<bool>,
    passphrase: Option<String>,
    avoid_reuse: Option<bool>
) -> Result<CreateWalletResponse>
[src]

pub async fn get_balance<'_, '_>(
    &'_ self,
    wallet_name: &'_ str,
    minimum_confirmation: Option<u32>,
    include_watch_only: Option<bool>,
    avoid_reuse: Option<bool>
) -> Result<Amount>
[src]

pub async fn set_hd_seed<'_, '_>(
    &'_ self,
    wallet_name: &'_ str,
    new_key_pool: Option<bool>,
    wif_private_key: Option<String>
) -> Result<()>
[src]

pub async fn get_new_address<'_, '_>(
    &'_ self,
    wallet_name: &'_ str,
    label: Option<String>,
    address_type: Option<String>
) -> Result<Address>
[src]

pub async fn get_wallet_info<'_, '_>(
    &'_ self,
    wallet_name: &'_ str
) -> Result<WalletInfoResponse>
[src]

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

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

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

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

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

pub async fn dump_wallet<'_, '_, '_>(
    &'_ self,
    wallet_name: &'_ str,
    filename: &'_ Path
) -> Result<()>
[src]

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

pub async fn derive_addresses<'_, '_>(
    &'_ self,
    descriptor: &'_ str,
    range: Option<[u64; 2]>
) -> Result<Vec<Address>>
[src]

pub async fn get_descriptor_info<'_, '_>(
    &'_ self,
    descriptor: &'_ str
) -> Result<GetDescriptorInfoResponse>
[src]

pub async fn generate_to_address<'_>(
    &'_ self,
    nblocks: u32,
    address: Address,
    max_tries: Option<u32>
) -> Result<Vec<BlockHash>>
[src]

pub async fn list_unspent<'_, '_>(
    &'_ self,
    wallet_name: &'_ str,
    min_conf: Option<u32>,
    max_conf: Option<u32>,
    addresses: Option<Vec<Address>>,
    include_unsafe: Option<bool>
) -> Result<Vec<Unspent>>
[src]

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

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

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

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

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

pub async fn get_block<'_, '_>(
    &'_ self,
    block_hash: &'_ BlockHash
) -> Result<GetBlockResponse>
[src]

Trait Implementations

impl Clone for Client[src]

impl Debug for Client[src]

Auto Trait Implementations

impl !RefUnwindSafe for Client

impl Send for Client

impl Sync for Client

impl Unpin for Client

impl !UnwindSafe for Client

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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>,