Struct exonum_btc_anchoring::RpcClient
[−]
[src]
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]
S: Into<String>,
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, account: &str) -> 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]
V: AsRef<[String]>,
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]
&self,
txid: &str
) -> Result<RawTransactionInfo, Error>
pub fn createrawtransaction<T, O>(
&self,
transactions: T,
outputs: O,
data: Option<String>
) -> Result<String, Error> where
O: AsRef<[TransactionOutput]>,
T: AsRef<[TransactionInput]>,
[src]
&self,
transactions: T,
outputs: O,
data: Option<String>
) -> Result<String, Error> where
O: AsRef<[TransactionOutput]>,
T: AsRef<[TransactionInput]>,
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]
&self,
txhex: &str,
outputs: O,
priv_keys: K
) -> Result<SignTxOutput, Error> where
K: AsRef<[String]>,
O: AsRef<[DependentOutput]>,
pub fn sendrawtransaction(&self, txhex: &str) -> Result<String, Error>
[src]
pub fn decoderawtransaction(
&self,
txhex: &str
) -> Result<RawTransactionInfo, Error>
[src]
&self,
txhex: &str
) -> Result<RawTransactionInfo, Error>
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]
&self,
count: u32,
from: u32,
include_watch_only: bool
) -> Result<Vec<TransactionInfo>, Error>
pub fn listunspent<V>(
&self,
min_confirmations: u32,
max_confirmations: u32,
addresses: &[V]
) -> Result<Vec<UnspentTransactionInfo>, Error> where
V: AsRef<str> + Serialize,
[src]
&self,
min_confirmations: u32,
max_confirmations: u32,
addresses: &[V]
) -> Result<Vec<UnspentTransactionInfo>, Error> where
V: AsRef<str> + Serialize,
pub fn importaddress(
&self,
addr: &str,
label: &str,
rescan: bool,
p2sh: bool
) -> Result<(), Error>
[src]
&self,
addr: &str,
label: &str,
rescan: bool,
p2sh: bool
) -> Result<(), Error>
pub fn generate(
&self,
nblocks: u64,
maxtries: u64
) -> Result<Vec<String>, Error>
[src]
&self,
nblocks: u64,
maxtries: u64
) -> Result<Vec<String>, Error>
pub fn generatetoaddress(
&self,
nblocks: u64,
addr: &str,
maxtries: u64
) -> Result<Vec<String>, Error>
[src]
&self,
nblocks: u64,
addr: &str,
maxtries: u64
) -> Result<Vec<String>, Error>
pub fn stop(&self) -> Result<String, Error>
[src]
pub fn getreceivedbyaddress(
&self,
addr: &str,
minconf: u64
) -> Result<f64, Error>
[src]
&self,
addr: &str,
minconf: u64
) -> Result<f64, Error>
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]
S: AsRef<str> + Serialize,
Trait Implementations
impl Debug for Client
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more
impl From<AnchoringRpcConfig> for RpcClient
[src]
fn from(cfg: AnchoringRpcConfig) -> Self
[src]
Performs the conversion.
impl BitcoinRelay for RpcClient
[src]
fn get_transaction(&self, txid: TxId) -> Result<Option<BitcoinTx>>
[src]
Retrieves transaction from the bitcoin blockchain.
fn get_transaction_info(&self, txid: TxId) -> Result<Option<TxInfo>>
[src]
Retrieves information about transaction with the given id.
fn watch_address(&self, addr: &Address, rescan: bool) -> Result<()>
[src]
Observes the changes on given address.
fn send_transaction(&self, tx: BitcoinTx) -> Result<()>
[src]
Sends raw transaction to the bitcoin network.
fn send_to_address(&self, addr: &Address, satoshis: u64) -> Result<FundingTx>
[src]
Sends funds to the given address.
fn unspent_transactions(&self, addr: &Address) -> Result<Vec<TxInfo>>
[src]
Lists unspent transactions for the given address.
fn config(&self) -> AnchoringRpcConfig
[src]
Returns an actual relay configuration.
fn get_transaction_confirmations(&self, txid: TxId) -> Result<Option<u64>>
[src]
Retrieves information about confirmations for transaction with the given id.