[−][src]Struct bitcoin_harness::bitcoind_rpc::Client
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]
&'_ self,
wallet_name: &'_ str,
disable_private_keys: Option<bool>,
blank: Option<bool>,
passphrase: Option<String>,
avoid_reuse: Option<bool>
) -> Result<CreateWalletResponse>
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]
&'_ self,
wallet_name: &'_ str,
minimum_confirmation: Option<u32>,
include_watch_only: Option<bool>,
avoid_reuse: Option<bool>
) -> Result<Amount>
pub async fn set_hd_seed<'_, '_>(
&'_ self,
wallet_name: &'_ str,
new_key_pool: Option<bool>,
wif_private_key: Option<String>
) -> Result<()>
[src]
&'_ self,
wallet_name: &'_ str,
new_key_pool: Option<bool>,
wif_private_key: Option<String>
) -> Result<()>
pub async fn get_new_address<'_, '_>(
&'_ self,
wallet_name: &'_ str,
label: Option<String>,
address_type: Option<String>
) -> Result<Address>
[src]
&'_ self,
wallet_name: &'_ str,
label: Option<String>,
address_type: Option<String>
) -> Result<Address>
pub async fn get_wallet_info<'_, '_>(
&'_ self,
wallet_name: &'_ str
) -> Result<WalletInfoResponse>
[src]
&'_ self,
wallet_name: &'_ str
) -> Result<WalletInfoResponse>
pub async fn send_to_address<'_, '_>(
&'_ self,
wallet_name: &'_ str,
address: Address,
amount: Amount
) -> Result<Txid>
[src]
&'_ self,
wallet_name: &'_ str,
address: Address,
amount: Amount
) -> Result<Txid>
pub async fn send_raw_transaction<'_, '_>(
&'_ self,
wallet_name: &'_ str,
transaction: Transaction
) -> Result<Txid>
[src]
&'_ self,
wallet_name: &'_ str,
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_raw_transaction_verbose<'_>(
&'_ self,
txid: Txid
) -> Result<GetRawTransactionVerboseResponse>
[src]
&'_ self,
txid: Txid
) -> Result<GetRawTransactionVerboseResponse>
pub async fn get_transaction<'_, '_>(
&'_ self,
wallet_name: &'_ str,
txid: Txid
) -> Result<WalletTransactionInfo>
[src]
&'_ self,
wallet_name: &'_ str,
txid: Txid
) -> Result<WalletTransactionInfo>
pub async fn dump_wallet<'_, '_, '_>(
&'_ self,
wallet_name: &'_ str,
filename: &'_ Path
) -> Result<()>
[src]
&'_ self,
wallet_name: &'_ str,
filename: &'_ Path
) -> Result<()>
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]
&'_ self,
descriptor: &'_ str,
range: Option<[u64; 2]>
) -> Result<Vec<Address>>
pub async fn get_descriptor_info<'_, '_>(
&'_ self,
descriptor: &'_ str
) -> Result<GetDescriptorInfoResponse>
[src]
&'_ self,
descriptor: &'_ str
) -> Result<GetDescriptorInfoResponse>
pub async fn generate_to_address<'_>(
&'_ self,
nblocks: u32,
address: Address,
max_tries: Option<u32>
) -> Result<Vec<BlockHash>>
[src]
&'_ self,
nblocks: u32,
address: Address,
max_tries: Option<u32>
) -> Result<Vec<BlockHash>>
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]
&'_ self,
wallet_name: &'_ str,
min_conf: Option<u32>,
max_conf: Option<u32>,
addresses: Option<Vec<Address>>,
include_unsafe: Option<bool>
) -> Result<Vec<Unspent>>
pub async fn fund_psbt<'_, '_, '_>(
&'_ self,
wallet_name: &'_ str,
inputs: &'_ [CreateRawTransactionInput],
address: Address,
amount: Amount
) -> Result<String>
[src]
&'_ self,
wallet_name: &'_ str,
inputs: &'_ [CreateRawTransactionInput],
address: Address,
amount: Amount
) -> Result<String>
pub async fn join_psbts<'_, '_, '_>(
&'_ self,
wallet_name: &'_ str,
psbts: &'_ [String]
) -> Result<PsbtBase64>
[src]
&'_ self,
wallet_name: &'_ str,
psbts: &'_ [String]
) -> Result<PsbtBase64>
pub async fn wallet_process_psbt<'_, '_>(
&'_ self,
wallet_name: &'_ str,
psbt: PsbtBase64
) -> Result<ProcessedPsbt>
[src]
&'_ self,
wallet_name: &'_ str,
psbt: PsbtBase64
) -> Result<ProcessedPsbt>
pub async fn finalize_psbt<'_, '_>(
&'_ self,
wallet_name: &'_ str,
psbt: PsbtBase64
) -> Result<FinalizedPsbt>
[src]
&'_ self,
wallet_name: &'_ str,
psbt: PsbtBase64
) -> Result<FinalizedPsbt>
pub async fn address_info<'_, '_, '_>(
&'_ self,
wallet_name: &'_ str,
address: &'_ Address
) -> Result<AddressInfo>
[src]
&'_ self,
wallet_name: &'_ str,
address: &'_ Address
) -> Result<AddressInfo>
pub async fn get_block<'_, '_>(
&'_ self,
block_hash: &'_ BlockHash
) -> Result<GetBlockResponse>
[src]
&'_ self,
block_hash: &'_ BlockHash
) -> Result<GetBlockResponse>
Trait Implementations
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]
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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>,