Struct ethcore::views::BlockView[][src]

pub struct BlockView<'a> { /* fields omitted */ }

View onto block rlp.

Methods

impl<'a> BlockView<'a>
[src]

Creates new view onto block from rlp. Use the view! macro to create this view in order to capture debugging info.

Example

#[macro_use]
extern crate ethcore;

use ethcore::views::{BlockView};

fn main() {
let bytes : &[u8] = &[];
let block_view = view!(BlockView, bytes);
}

Block header hash.

Return reference to underlaying rlp.

Create new Header object from header rlp.

Return header rlp.

Create new header view obto block head rlp.

Important traits for Vec<u8>

Return List of transactions in given block.

Important traits for Vec<u8>

Return List of transactions with additional localization info.

Return the raw rlp for the transactions in the given block.

Return number of transactions in given block, without deserializing them.

Important traits for Vec<u8>

Return List of transactions in given block.

Important traits for Vec<u8>

Return transaction hashes.

Returns transaction at given index without deserializing unnecessary data.

Returns localized transaction at given index.

Returns raw rlp for the uncles in the given block

Important traits for Vec<u8>

Return list of uncles of given block.

Return number of uncles in given block, without deserializing them.

Important traits for Vec<u8>

Return List of transactions in given block.

Important traits for Vec<u8>

Return list of uncle hashes of given block.

Return nth uncle.

Return nth uncle rlp.

Auto Trait Implementations

impl<'a> Send for BlockView<'a>

impl<'a> !Sync for BlockView<'a>