[][src]Trait throttled_bitcoin_rpc::BatchRequest

pub trait BatchRequest<BitcoinRpcClient, T: for<'de> Deserialize<'de>> {
    fn inner(&mut self) -> &mut ReqBatcher<BitcoinRpcClient, T>;
fn createrawtransaction(
        &mut self,
        inputs: Vec<TxInput>,
        outputs: HashMap<String, f64>,
        locktime: Option<isize>
    ) -> Result<req_id, Error>;
fn dumpprivkey(&mut self, address: String) -> Result<req_id, Error>;
fn generate(
        &mut self,
        number: isize,
        iterations: Option<isize>
    ) -> Result<req_id, Error>;
fn getblockchaininfo(&mut self) -> Result<req_id, Error>;
fn getblockcount(&mut self) -> Result<req_id, Error>;
fn getblockhash(&mut self, block_height: isize) -> Result<req_id, Error>;
fn getnewaddress(
        &mut self,
        account: Option<String>,
        address_type: Option<String>
    ) -> Result<req_id, Error>;
fn getrawmempool(&mut self, format: bool) -> Result<req_id, Error>;
fn sendrawtransaction(
        &mut self,
        transaction: String,
        allow_high_fee: Option<bool>
    ) -> Result<req_id, Error>;
fn sendtoaddress(
        &mut self,
        address: String,
        amount: f64,
        comment: Option<String>,
        comment_to: Option<String>,
        include_fee: Option<bool>
    ) -> Result<req_id, Error>;
fn signrawtransaction(
        &mut self,
        transaction: String,
        outputs: Option<Vec<TxOutput>>,
        privkeys: Option<Vec<String>>,
        sig_hash_type: Option<String>
    ) -> Result<req_id, Error>;
fn gettxout(
        &mut self,
        txid: String,
        vout: isize,
        unconfirmed: bool
    ) -> Result<req_id, Error>;
fn getblock(
        &mut self,
        header_hash: String,
        verbosity: isize
    ) -> Result<req_id, Error>;
fn getrawtransaction(
        &mut self,
        txid: String,
        verbose: bool
    ) -> Result<req_id, Error>;
fn flush(&mut self) -> Result<(), Error>;
fn send(&mut self) -> Result<HashMap<req_id, T>, Error>; }

Required methods

fn inner(&mut self) -> &mut ReqBatcher<BitcoinRpcClient, T>

fn createrawtransaction(
    &mut self,
    inputs: Vec<TxInput>,
    outputs: HashMap<String, f64>,
    locktime: Option<isize>
) -> Result<req_id, Error>

fn dumpprivkey(&mut self, address: String) -> Result<req_id, Error>

fn generate(
    &mut self,
    number: isize,
    iterations: Option<isize>
) -> Result<req_id, Error>

fn getblockchaininfo(&mut self) -> Result<req_id, Error>

fn getblockcount(&mut self) -> Result<req_id, Error>

fn getblockhash(&mut self, block_height: isize) -> Result<req_id, Error>

fn getnewaddress(
    &mut self,
    account: Option<String>,
    address_type: Option<String>
) -> Result<req_id, Error>

fn getrawmempool(&mut self, format: bool) -> Result<req_id, Error>

fn sendrawtransaction(
    &mut self,
    transaction: String,
    allow_high_fee: Option<bool>
) -> Result<req_id, Error>

fn sendtoaddress(
    &mut self,
    address: String,
    amount: f64,
    comment: Option<String>,
    comment_to: Option<String>,
    include_fee: Option<bool>
) -> Result<req_id, Error>

fn signrawtransaction(
    &mut self,
    transaction: String,
    outputs: Option<Vec<TxOutput>>,
    privkeys: Option<Vec<String>>,
    sig_hash_type: Option<String>
) -> Result<req_id, Error>

fn gettxout(
    &mut self,
    txid: String,
    vout: isize,
    unconfirmed: bool
) -> Result<req_id, Error>

fn getblock(
    &mut self,
    header_hash: String,
    verbosity: isize
) -> Result<req_id, Error>

fn getrawtransaction(
    &mut self,
    txid: String,
    verbose: bool
) -> Result<req_id, Error>

fn flush(&mut self) -> Result<(), Error>

fn send(&mut self) -> Result<HashMap<req_id, T>, Error>

Loading content...

Implementations on Foreign Types

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

Loading content...

Implementors

Loading content...