[−][src]Trait exonum_btc_anchoring::rpc::BtcRelay
Information provider about the Bitcoin network.
Required methods
fn send_to_address(
&self,
addr: &Address,
satoshis: u64
) -> Result<Transaction, Error>
&self,
addr: &Address,
satoshis: u64
) -> Result<Transaction, Error>
Sends funds to the given address.
fn transaction_info(&self, id: &Hash) -> Result<Option<TransactionInfo>, Error>
Retrieves information about transaction with the given id.
fn send_transaction(&self, transaction: &Transaction) -> Result<Hash, Error>
Sends raw transaction to the bitcoin network.
fn watch_address(&self, addr: &Address, rescan: bool) -> Result<(), Error>
Observes the changes on given address.
fn config(&self) -> BitcoinRpcConfig
Returns an actual relay configuration.
Implementors
impl BtcRelay for BitcoinRpcClient
[src]
fn send_to_address(
&self,
addr: &Address,
satoshis: u64
) -> Result<Transaction, Error>
[src]
&self,
addr: &Address,
satoshis: u64
) -> Result<Transaction, Error>
fn transaction_info(&self, id: &Hash) -> Result<Option<TransactionInfo>, Error>
[src]
fn send_transaction(&self, transaction: &Transaction) -> Result<Hash, Error>
[src]
fn watch_address(&self, addr: &Address, rescan: bool) -> Result<(), Error>
[src]
fn config(&self) -> BitcoinRpcConfig
[src]
impl BtcRelay for FakeBtcRelay
[src]
fn send_to_address(
&self,
addr: &Address,
satoshis: u64
) -> Result<Transaction, Error>
[src]
&self,
addr: &Address,
satoshis: u64
) -> Result<Transaction, Error>
fn transaction_info(
&self,
id: &Hash
) -> Result<Option<BtcTransactionInfo>, Error>
[src]
&self,
id: &Hash
) -> Result<Option<BtcTransactionInfo>, Error>