[]Trait rpc::v1::BlockChain

pub trait BlockChain: Sized + Send + Sync + 'static {
    fn best_block_hash(&self) -> Result<H256, Error>;
fn block_count(&self) -> Result<u32, Error>;
fn block_hash(&self, _: u32) -> Result<H256, Error>;
fn difficulty(&self) -> Result<f64, Error>;
fn block(
        &self,
        _: H256,
        _: Trailing<bool>
    ) -> Result<GetBlockResponse, Error>;
fn transaction_out(
        &self,
        _: H256,
        _: u32,
        _: Trailing<bool>
    ) -> Result<GetTxOutResponse, Error>;
fn transaction_out_set_info(&self) -> Result<GetTxOutSetInfoResponse, Error>; fn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M> { ... } }
[]

Parity-bitcoin blockchain data interface.

Required Methods

[]

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/

[]

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/

[]

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/

[]

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/

[]

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/

[]

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/

[]

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/

Provided Methods

[]

Transform this into an IoDelegate, automatically wrapping the parameters.

Implementors

impl<T> BlockChain for BlockChainClient<T> where
    T: BlockChainClientCoreApi, 
[src]
[]