[−][src]Trait exonum_btc_anchoring::BitcoinRelay
Required methods
fn get_transaction(&self, txid: TxId) -> Result<Option<BitcoinTx>>
Retrieves transaction from the bitcoin blockchain.
fn get_transaction_info(&self, txid: TxId) -> Result<Option<TxInfo>>
Retrieves information about transaction with the given id.
fn watch_address(&self, addr: &Address, rescan: bool) -> Result<()>
Observes the changes on given address.
fn send_transaction(&self, tx: BitcoinTx) -> Result<()>
Sends raw transaction to the bitcoin network.
fn send_to_address(&self, addr: &Address, satoshis: u64) -> Result<FundingTx>
Sends funds to the given address.
fn unspent_transactions(&self, addr: &Address) -> Result<Vec<TxInfo>>
Lists unspent transactions for the given address.
fn config(&self) -> AnchoringRpcConfig
Returns an actual relay configuration.
Provided methods
fn get_transaction_confirmations(&self, txid: TxId) -> Result<Option<u64>>
Retrieves information about confirmations for transaction with the given id.
Implementors
impl BitcoinRelay for RpcClient
[src]
impl BitcoinRelay for RpcClient
fn get_transaction(&self, txid: TxId) -> Result<Option<BitcoinTx>> | [src] |
fn get_transaction_info(&self, txid: TxId) -> Result<Option<TxInfo>> | [src] |
fn watch_address(&self, addr: &Address, rescan: bool) -> Result<()> | [src] |
fn send_transaction(&self, tx: BitcoinTx) -> Result<()> | [src] |
fn send_to_address(&self, addr: &Address, satoshis: u64) -> Result<FundingTx> | [src] |
fn unspent_transactions(&self, addr: &Address) -> Result<Vec<TxInfo>> | [src] |
fn config(&self) -> AnchoringRpcConfig | [src] |
fn get_transaction_confirmations(&self, txid: TxId) -> Result<Option<u64>> | [src] |