Struct ethcore::views::HeaderView
[−]
[src]
pub struct HeaderView<'a> { /* fields omitted */ }
View onto block header rlp.
Methods
impl<'a> HeaderView<'a>
[src]
fn new(bytes: &'a [u8]) -> HeaderView<'a>
Creates new view onto header from raw bytes.
fn new_from_rlp(rlp: Rlp<'a>) -> HeaderView<'a>
Creates new view onto header from rlp.
fn hash(&self) -> H256
Returns header hash.
fn rlp(&self) -> &Rlp<'a>
Returns raw rlp.
fn parent_hash(&self) -> H256
Returns parent hash.
fn uncles_hash(&self) -> H256
Returns uncles hash.
Returns author.
fn state_root(&self) -> H256
Returns state root.
fn transactions_root(&self) -> H256
Returns transactions root.
fn receipts_root(&self) -> H256
Returns block receipts root.
fn log_bloom(&self) -> H2048
Returns block log bloom.
fn difficulty(&self) -> U256
Returns block difficulty.
fn number(&self) -> BlockNumber
Returns block number.
fn gas_limit(&self) -> U256
Returns block gas limit.
fn gas_used(&self) -> U256
Returns block gas used.
fn timestamp(&self) -> u64
Returns timestamp.
fn extra_data(&self) -> Bytes
Returns block extra data.
fn seal(&self) -> Vec<Bytes>
Returns a vector of post-RLP-encoded seal fields.