[−][src]Struct throttled_bitcoin_rpc::BitcoinRpcClient
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]
uri: String,
user: Option<String>,
pass: Option<String>,
max_concurrency: usize,
rps: usize,
max_batch_size: usize
) -> Arc<Self>
pub fn batcher<'a, T: for<'de> Deserialize<'de>>(
&'a self
) -> (&'a Self, ReqBatcher<BitcoinRpcClient, T>)
[src]
&'a self
) -> (&'a Self, ReqBatcher<BitcoinRpcClient, T>)
pub fn createrawtransaction(
&self,
inputs: Vec<TxInput>,
outputs: HashMap<String, f64>,
locktime: Option<isize>
) -> Result<String, Error>
[src]
&self,
inputs: Vec<TxInput>,
outputs: HashMap<String, f64>,
locktime: Option<isize>
) -> Result<String, Error>
pub fn dumpprivkey(&self, address: String) -> Result<String, Error>
[src]
pub fn generate(
&self,
number: isize,
iterations: Option<isize>
) -> Result<Vec<String>, Error>
[src]
&self,
number: isize,
iterations: Option<isize>
) -> Result<Vec<String>, Error>
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]
&self,
account: Option<String>,
address_type: Option<String>
) -> Result<String, Error>
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]
&self,
transaction: String,
allow_high_fee: Option<bool>
) -> Result<String, Error>
pub fn sendtoaddress(
&self,
address: String,
amount: f64,
comment: Option<String>,
comment_to: Option<String>,
include_fee: Option<bool>
) -> Result<String, Error>
[src]
&self,
address: String,
amount: f64,
comment: Option<String>,
comment_to: Option<String>,
include_fee: Option<bool>
) -> Result<String, Error>
pub fn signrawtransaction(
&self,
transaction: String,
outputs: Option<Vec<TxOutput>>,
privkeys: Option<Vec<String>>,
sig_hash_type: Option<String>
) -> Result<SignedTx, Error>
[src]
&self,
transaction: String,
outputs: Option<Vec<TxOutput>>,
privkeys: Option<Vec<String>>,
sig_hash_type: Option<String>
) -> Result<SignedTx, Error>
pub fn gettxout(
&self,
txid: String,
vout: isize,
unconfirmed: bool
) -> Result<Option<TxOut>, Error>
[src]
&self,
txid: String,
vout: isize,
unconfirmed: bool
) -> Result<Option<TxOut>, Error>
pub fn getblock(
&self,
header_hash: String,
verbosity: isize
) -> Result<getblock, Error>
[src]
&self,
header_hash: String,
verbosity: isize
) -> Result<getblock, Error>
pub fn getrawtransaction(
&self,
txid: String,
verbose: bool
) -> Result<getrawtransaction, Error>
[src]
&self,
txid: String,
verbose: bool
) -> Result<getrawtransaction, Error>
Trait Implementations
impl<'a, T> BatchRequest<BitcoinRpcClient, T> for (&'a BitcoinRpcClient, ReqBatcher<BitcoinRpcClient, T>) where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
fn inner(&mut self) -> &mut ReqBatcher<BitcoinRpcClient, T>
[src]
fn createrawtransaction(
&mut self,
inputs: Vec<TxInput>,
outputs: HashMap<String, f64>,
locktime: Option<isize>
) -> Result<req_id, Error>
[src]
&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>
[src]
fn generate(
&mut self,
number: isize,
iterations: Option<isize>
) -> Result<req_id, Error>
[src]
&mut self,
number: isize,
iterations: Option<isize>
) -> Result<req_id, Error>
fn getblockchaininfo(&mut self) -> Result<req_id, Error>
[src]
fn getblockcount(&mut self) -> Result<req_id, Error>
[src]
fn getblockhash(&mut self, block_height: isize) -> Result<req_id, Error>
[src]
fn getnewaddress(
&mut self,
account: Option<String>,
address_type: Option<String>
) -> Result<req_id, Error>
[src]
&mut self,
account: Option<String>,
address_type: Option<String>
) -> Result<req_id, Error>
fn getrawmempool(&mut self, format: bool) -> Result<req_id, Error>
[src]
fn sendrawtransaction(
&mut self,
transaction: String,
allow_high_fee: Option<bool>
) -> Result<req_id, Error>
[src]
&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>
[src]
&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>
[src]
&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>
[src]
&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>
[src]
&mut self,
header_hash: String,
verbosity: isize
) -> Result<req_id, Error>
fn getrawtransaction(
&mut self,
txid: String,
verbose: bool
) -> Result<req_id, Error>
[src]
&mut self,
txid: String,
verbose: bool
) -> Result<req_id, Error>
fn flush(&mut self) -> Result<(), Error>
[src]
fn send(&mut self) -> Result<HashMap<req_id, T>, Error>
[src]
Auto Trait Implementations
impl Send for BitcoinRpcClient
impl Sync for BitcoinRpcClient
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,