[][src]Struct throttled_bitcoin_rpc::BitcoinRpcClient

pub struct BitcoinRpcClient { /* fields omitted */ }

Methods

impl BitcoinRpcClient[src]

pub fn new(
    uri: String,
    user: Option<String>,
    pass: Option<String>,
    max_concurrency: usize,
    rps: usize,
    max_batch_size: usize
) -> Arc<Self>
[src]

pub fn batcher<'a, T: for<'de> Deserialize<'de>>(
    &'a self
) -> (&'a Self, ReqBatcher<BitcoinRpcClient, T>)
[src]

pub fn createrawtransaction(
    &self,
    inputs: Vec<TxInput>,
    outputs: HashMap<String, f64>,
    locktime: Option<isize>
) -> Result<String, Error>
[src]

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

pub fn generate(
    &self,
    number: isize,
    iterations: Option<isize>
) -> Result<Vec<String>, Error>
[src]

pub fn getblockchaininfo(&self) -> Result<BlockChainInfo, Error>[src]

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

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

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

pub fn getrawmempool(&self, format: bool) -> Result<RawMemPool, Error>[src]

pub fn sendrawtransaction(
    &self,
    transaction: String,
    allow_high_fee: Option<bool>
) -> Result<String, Error>
[src]

pub fn sendtoaddress(
    &self,
    address: String,
    amount: f64,
    comment: Option<String>,
    comment_to: Option<String>,
    include_fee: Option<bool>
) -> Result<String, Error>
[src]

pub fn signrawtransaction(
    &self,
    transaction: String,
    outputs: Option<Vec<TxOutput>>,
    privkeys: Option<Vec<String>>,
    sig_hash_type: Option<String>
) -> Result<SignedTx, Error>
[src]

pub fn gettxout(
    &self,
    txid: String,
    vout: isize,
    unconfirmed: bool
) -> Result<Option<TxOut>, Error>
[src]

pub fn getblock(
    &self,
    header_hash: String,
    verbosity: isize
) -> Result<getblock, Error>
[src]

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

Trait Implementations

impl<'a, T> BatchRequest<BitcoinRpcClient, T> for (&'a BitcoinRpcClient, ReqBatcher<BitcoinRpcClient, T>) where
    T: for<'de> Deserialize<'de>, 
[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[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