[][src]Struct exonum_btc_anchoring::RpcClient

pub struct RpcClient { /* fields omitted */ }

Methods

impl Client
[src]

pub fn new<S>(url: S, user: Option<String>, password: Option<String>) -> Client where
    S: Into<String>, 
[src]

pub fn url(&self) -> &str
[src]

pub fn password(&self) -> &Option<String>
[src]

pub fn username(&self) -> &Option<String>
[src]

impl Client
[src]

pub fn getinfo(&self) -> Result<Info, Error>
[src]

pub fn getnewaddress(&self) -> Result<String, Error>
[src]

pub fn validateaddress(&self, addr: &str) -> Result<AddressInfo, Error>
[src]

pub fn createmultisig<V>(&self, signs: u8, addrs: V) -> Result<MultiSig, Error> where
    V: AsRef<[String]>, 
[src]

pub fn sendtoaddress(&self, addr: &str, amount: &str) -> Result<String, Error>
[src]

pub fn getrawtransaction(&self, txid: &str) -> Result<String, Error>
[src]

pub fn getrawtransaction_verbose(
    &self,
    txid: &str
) -> Result<RawTransactionInfo, Error>
[src]

pub fn createrawtransaction<T, O>(
    &self,
    transactions: T,
    outputs: O,
    data: Option<String>
) -> Result<String, Error> where
    O: AsRef<[TransactionOutput]>,
    T: AsRef<[TransactionInput]>, 
[src]

pub fn dumpprivkey(&self, pub_key: &str) -> Result<String, Error>
[src]

pub fn signrawtransaction<O, K>(
    &self,
    txhex: &str,
    outputs: O,
    priv_keys: K
) -> Result<SignTxOutput, Error> where
    K: AsRef<[String]>,
    O: AsRef<[DependentOutput]>, 
[src]

pub fn sendrawtransaction(&self, txhex: &str) -> Result<String, Error>
[src]

pub fn decoderawtransaction(
    &self,
    txhex: &str
) -> Result<RawTransactionInfo, Error>
[src]

pub fn addwitnessaddress(&self, addr: &str) -> Result<String, Error>
[src]

pub fn listtransactions(
    &self,
    count: u32,
    from: u32,
    include_watch_only: bool
) -> Result<Vec<TransactionInfo>, Error>
[src]

pub fn listunspent<V>(
    &self,
    min_confirmations: u32,
    max_confirmations: u32,
    addresses: &[V]
) -> Result<Vec<UnspentTransactionInfo>, Error> where
    V: AsRef<str> + Serialize
[src]

pub fn importaddress(
    &self,
    addr: &str,
    label: &str,
    rescan: bool,
    p2sh: bool
) -> Result<(), Error>
[src]

pub fn generate(
    &self,
    nblocks: u64,
    maxtries: u64
) -> Result<Vec<String>, Error>
[src]

pub fn generatetoaddress(
    &self,
    nblocks: u64,
    addr: &str,
    maxtries: u64
) -> Result<Vec<String>, Error>
[src]

pub fn stop(&self) -> Result<String, Error>
[src]

pub fn getreceivedbyaddress(
    &self,
    addr: &str,
    minconf: u64
) -> Result<f64, Error>
[src]

pub fn getblockcount(&self) -> Result<u64, Error>
[src]

pub fn getbestblockhash(&self) -> Result<String, Error>
[src]

pub fn getblockhash(&self, height: u64) -> Result<String, Error>
[src]

pub fn getblock<S>(&self, hash: S) -> Result<String, Error> where
    S: AsRef<str> + Serialize
[src]

Trait Implementations

impl Debug for Client
[src]

impl BitcoinRelay for RpcClient
[src]

fn get_transaction_confirmations(&self, txid: TxId) -> Result<Option<u64>>
[src]

Retrieves information about confirmations for transaction with the given id.

impl From<AnchoringRpcConfig> for RpcClient
[src]

Auto Trait Implementations

impl Send for Client

impl Sync for Client

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

impl<T> Erased for T

impl<T> Same for T

type Output = T

Should always be Self