[][src]Trait exonum_btc_anchoring::sync::BitcoinRelay

pub trait BitcoinRelay {
    type Error;
#[must_use]    fn send_transaction<'life0, 'life1, 'async_trait>(
        &'life0 self,
        transaction: &'life1 Transaction
    ) -> Pin<Box<dyn Future<Output = Result<Sha256d, Self::Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn transaction_status<'life0, 'async_trait>(
        &'life0 self,
        id: Sha256d
    ) -> Pin<Box<dyn Future<Output = Result<TransactionStatus, Self::Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

Describes communication with the Bitcoin network node.

Associated Types

type Error

Error type for the current Bitcoin relay implementation.

Loading content...

Required methods

#[must_use]fn send_transaction<'life0, 'life1, 'async_trait>(
    &'life0 self,
    transaction: &'life1 Transaction
) -> Pin<Box<dyn Future<Output = Result<Sha256d, Self::Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

Sends a raw transaction to the Bitcoin network node.

#[must_use]fn transaction_status<'life0, 'async_trait>(
    &'life0 self,
    id: Sha256d
) -> Pin<Box<dyn Future<Output = Result<TransactionStatus, Self::Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

Gets status for the transaction with the specified identifier.

Loading content...

Implementations on Foreign Types

impl BitcoinRelay for Client[src]

type Error = Error

Loading content...

Implementors

Loading content...