Trait BlockchainClient
Source pub trait BlockchainClient: Send + Sync {
Show 13 methods
// Required methods
fn get_blockchain_info<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<BlockchainInfo>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_raw_transaction_with_block<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
txid: &'life1 str,
verbose: bool,
blockhash: Option<&'life2 str>,
) -> Pin<Box<dyn Future<Output = Result<RawTransaction>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn list_unspent<'life0, 'life1, 'async_trait>(
&'life0 self,
min_conf: Option<u32>,
max_conf: Option<u32>,
addresses: Option<&'life1 [String]>,
) -> Pin<Box<dyn Future<Output = Result<Vec<Utxo>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn list_transactions<'life0, 'life1, 'async_trait>(
&'life0 self,
label: Option<&'life1 str>,
count: Option<usize>,
skip: Option<usize>,
include_watchonly: bool,
) -> Pin<Box<dyn Future<Output = Result<Vec<TransactionListItem>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_received_by_address<'life0, 'life1, 'async_trait>(
&'life0 self,
address: &'life1 str,
min_conf: Option<u32>,
) -> Pin<Box<dyn Future<Output = Result<f64>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn list_received_by_address<'life0, 'async_trait>(
&'life0 self,
min_conf: Option<u32>,
include_empty: bool,
include_watchonly: bool,
) -> Pin<Box<dyn Future<Output = Result<Vec<ReceivedByAddress>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn is_address_watched<'life0, 'life1, 'async_trait>(
&'life0 self,
address: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn import_address<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
address: &'life1 str,
label: Option<&'life2 str>,
rescan: bool,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn validate_address<'life0, 'life1, 'async_trait>(
&'life0 self,
address: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<AddressValidation>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_transaction<'life0, 'life1, 'async_trait>(
&'life0 self,
txid: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_block_count<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_best_block_hash<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided method
fn get_raw_transaction<'life0, 'life1, 'async_trait>(
&'life0 self,
txid: &'life1 str,
verbose: bool,
) -> Pin<Box<dyn Future<Output = Result<RawTransaction>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
}