Trait ethcore::client::BlockInfo
[−]
[src]
pub trait BlockInfo { fn block_header(&self, id: BlockId) -> Option<Header>; fn best_block_header(&self) -> Header; fn block(&self, id: BlockId) -> Option<Block>; fn code_hash(&self, address: &Address, id: BlockId) -> Option<H256>; }
Provides various information on a block by it's ID
Required Methods
fn block_header(&self, id: BlockId) -> Option<Header>
Get raw block header data by block id.
fn best_block_header(&self) -> Header
Get the best block header.
fn block(&self, id: BlockId) -> Option<Block>
Get raw block data by block header hash.
fn code_hash(&self, address: &Address, id: BlockId) -> Option<H256>
Get address code hash at given block's state.
Implementors
impl BlockInfo for Client
impl BlockInfo for TestBlockChainClient