Trait exonum_btc_anchoring::BitcoinRelay [] [src]

pub trait BitcoinRelay: 'static + Debug + Send + Sync {
    fn get_transaction(&self, txid: TxId) -> Result<Option<BitcoinTx>>;
fn get_transaction_info(&self, txid: TxId) -> Result<Option<TxInfo>>;
fn watch_address(&self, addr: &Address, rescan: bool) -> Result<()>;
fn send_transaction(&self, tx: BitcoinTx) -> Result<()>;
fn send_to_address(
        &self,
        addr: &Address,
        satoshis: u64
    ) -> Result<FundingTx>;
fn unspent_transactions(&self, addr: &Address) -> Result<Vec<TxInfo>>;
fn config(&self) -> AnchoringRpcConfig; fn get_transaction_confirmations(&self, txid: TxId) -> Result<Option<u64>> { ... } }

Required Methods

Retrieves transaction from the bitcoin blockchain.

Retrieves information about transaction with the given id.

Observes the changes on given address.

Sends raw transaction to the bitcoin network.

Sends funds to the given address.

Lists unspent transactions for the given address.

Returns an actual relay configuration.

Provided Methods

Retrieves information about confirmations for transaction with the given id.

Implementors