Struct exonum_bitcoinrpc::Client
[−]
[src]
pub struct Client { /* fields omitted */ }
Methods
impl Client
[src]
fn new<S>(url: S, user: Option<String>, password: Option<String>) -> Client where
S: Into<String>,
[src]
S: Into<String>,
fn url(&self) -> &str
[src]
fn password(&self) -> &Option<String>
[src]
fn username(&self) -> &Option<String>
[src]
impl Client
[src]
fn getinfo(&self) -> Result<Info>
[src]
fn getnewaddress(&self, account: &str) -> Result<String>
[src]
fn validateaddress(&self, addr: &str) -> Result<AddressInfo>
[src]
fn createmultisig<V: AsRef<[String]>>(
&self,
signs: u8,
addrs: V
) -> Result<MultiSig>
[src]
&self,
signs: u8,
addrs: V
) -> Result<MultiSig>
fn sendtoaddress(&self, addr: &str, amount: &str) -> Result<String>
[src]
fn getrawtransaction(&self, txid: &str) -> Result<String>
[src]
fn getrawtransaction_verbose(&self, txid: &str) -> Result<RawTransactionInfo>
[src]
fn createrawtransaction<T, O>(
&self,
transactions: T,
outputs: O,
data: Option<String>
) -> Result<String> where
T: AsRef<[TransactionInput]>,
O: AsRef<[TransactionOutput]>,
[src]
&self,
transactions: T,
outputs: O,
data: Option<String>
) -> Result<String> where
T: AsRef<[TransactionInput]>,
O: AsRef<[TransactionOutput]>,
fn dumpprivkey(&self, pub_key: &str) -> Result<String>
[src]
fn signrawtransaction<O, K>(
&self,
txhex: &str,
outputs: O,
priv_keys: K
) -> Result<SignTxOutput> where
O: AsRef<[DependentOutput]>,
K: AsRef<[String]>,
[src]
&self,
txhex: &str,
outputs: O,
priv_keys: K
) -> Result<SignTxOutput> where
O: AsRef<[DependentOutput]>,
K: AsRef<[String]>,
fn sendrawtransaction(&self, txhex: &str) -> Result<String>
[src]
fn decoderawtransaction(&self, txhex: &str) -> Result<RawTransactionInfo>
[src]
fn addwitnessaddress(&self, addr: &str) -> Result<String>
[src]
fn listtransactions(
&self,
count: u32,
from: u32,
include_watch_only: bool
) -> Result<Vec<TransactionInfo>>
[src]
&self,
count: u32,
from: u32,
include_watch_only: bool
) -> Result<Vec<TransactionInfo>>
fn listunspent<V: AsRef<str> + Serialize>(
&self,
min_confirmations: u32,
max_confirmations: u32,
addresses: &[V]
) -> Result<Vec<UnspentTransactionInfo>>
[src]
&self,
min_confirmations: u32,
max_confirmations: u32,
addresses: &[V]
) -> Result<Vec<UnspentTransactionInfo>>
fn importaddress(
&self,
addr: &str,
label: &str,
rescan: bool,
p2sh: bool
) -> Result<()>
[src]
&self,
addr: &str,
label: &str,
rescan: bool,
p2sh: bool
) -> Result<()>
fn generate(&self, nblocks: u64, maxtries: u64) -> Result<Vec<String>>
[src]
fn generatetoaddress(
&self,
nblocks: u64,
addr: &str,
maxtries: u64
) -> Result<Vec<String>>
[src]
&self,
nblocks: u64,
addr: &str,
maxtries: u64
) -> Result<Vec<String>>