[−][src]Struct exonum_btc_anchoring::rpc::BitcoinRpcClient
Client for the Bitcoind
rpc api.
Methods
impl BitcoinRpcClient
[src]
pub fn new(config: BitcoinRpcConfig) -> Self
[src]
Creates a new rpc client for the given configuration.
Trait Implementations
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 From<BitcoinRpcConfig> for BitcoinRpcClient
[src]
fn from(cfg: BitcoinRpcConfig) -> Self
[src]
impl From<BitcoinRpcClient> for Box<dyn BtcRelay>
[src]
fn from(client: BitcoinRpcClient) -> Self
[src]
impl Debug for BitcoinRpcClient
[src]
Auto Trait Implementations
impl Send for BitcoinRpcClient
impl Sync for BitcoinRpcClient
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Erased for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,