[−][src]Struct rpc::v1::BlockChainClient
Methods
impl<T> BlockChainClient<T> where
T: BlockChainClientCoreApi,
[src]
impl<T> BlockChainClient<T> where
T: BlockChainClientCoreApi,
Trait Implementations
impl<T> BlockChain for BlockChainClient<T> where
T: BlockChainClientCoreApi,
[src]
impl<T> BlockChain for BlockChainClient<T> where
T: BlockChainClientCoreApi,
fn best_block_hash(&self) -> Result<H256, Error>
[src]
fn best_block_hash(&self) -> Result<H256, Error>
Get hash of best block. @curl-example: curl --data-binary '{"jsonrpc": "2.0", "method": "getbestblockhash", "params": [], "id":1 }' -H 'content-type: application/json' http://127.0.0.1:8332/ Read more
fn block_count(&self) -> Result<u32, Error>
[src]
fn block_count(&self) -> Result<u32, Error>
Get height of best block. @curl-example: curl --data-binary '{"jsonrpc": "2.0", "method": "getblockcount", "params": [], "id":1 }' -H 'content-type: application/json' http://127.0.0.1:8332/ Read more
fn block_hash(&self, height: u32) -> Result<H256, Error>
[src]
fn block_hash(&self, height: u32) -> Result<H256, Error>
Get hash of block at given height. @curl-example: curl --data-binary '{"jsonrpc": "2.0", "method": "getblockhash", "params": [0], "id":1 }' -H 'content-type: application/json' http://127.0.0.1:8332/ Read more
fn difficulty(&self) -> Result<f64, Error>
[src]
fn difficulty(&self) -> Result<f64, Error>
Get proof-of-work difficulty as a multiple of the minimum difficulty @curl-example: curl --data-binary '{"jsonrpc": "2.0", "method": "getdifficulty", "params": [], "id":1 }' -H 'content-type: application/json' http://127.0.0.1:8332/ Read more
fn block(
&self,
hash: H256,
verbose: Trailing<bool>
) -> Result<GetBlockResponse, Error>
[src]
fn block(
&self,
hash: H256,
verbose: Trailing<bool>
) -> Result<GetBlockResponse, Error>
Get information on given block. @curl-example: curl --data-binary '{"jsonrpc": "2.0", "method": "getblock", "params": ["000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f"], "id":1 }' -H 'content-type: application/json' http://127.0.0.1:8332/ Read more
fn transaction_out(
&self,
transaction_hash: H256,
out_index: u32,
_include_mempool: Trailing<bool>
) -> Result<GetTxOutResponse, Error>
[src]
fn transaction_out(
&self,
transaction_hash: H256,
out_index: u32,
_include_mempool: Trailing<bool>
) -> Result<GetTxOutResponse, Error>
Get details about an unspent transaction output. @curl-example: curl --data-binary '{"jsonrpc": "2.0", "method": "gettxout", "params": ["4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b", 0], "id":1 }' -H 'content-type: application/json' http://127.0.0.1:8332/ Read more
fn transaction_out_set_info(&self) -> Result<GetTxOutSetInfoResponse, Error>
[src]
fn transaction_out_set_info(&self) -> Result<GetTxOutSetInfoResponse, Error>
Get statistics about the unspent transaction output set. @curl-example: curl --data-binary '{"jsonrpc": "2.0", "method": "gettxoutsetinfo", "params": [], "id":1 }' -H 'content-type: application/json' http://127.0.0.1:8332/ Read more
fn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M>
fn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M>
Transform this into an IoDelegate
, automatically wrapping the parameters. Read more
Auto Trait Implementations
impl<T> Send for BlockChainClient<T>
impl<T> Send for BlockChainClient<T>
impl<T> Sync for BlockChainClient<T>
impl<T> Sync for BlockChainClient<T>
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
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]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
try_from
)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
ⓘImportant traits for &'a mut Rfn borrow(&self) -> &T
[src]
fn borrow(&self) -> &T
Immutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
try_from
)Performs the conversion.
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
ⓘImportant traits for &'a mut Rfn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Gets the TypeId
of self
. Read more
impl<T> Erased for T
impl<T> Erased for T