[][src]Struct exonum::explorer::BlockchainExplorer

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

Blockchain explorer.

Notes

The explorer wraps a specific Snapshot of the blockchain state; that is, all calls to the methods of an explorer instance are guaranteed to be consistent.

Methods

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

pub fn new(blockchain: &'a Blockchain) -> Self
[src]

Creates a new BlockchainExplorer instance.

pub fn transaction(&self, tx_hash: &Hash) -> Option<TransactionInfo>
[src]

Returns information about the transaction identified by the hash.

pub fn height(&self) -> Height
[src]

Returns the height of the blockchain.

pub fn block(&self, height: Height) -> Option<BlockInfo>
[src]

Returns block information for the specified height or None if there is no such block.

pub fn block_with_txs(&self, height: Height) -> Option<BlockWithTransactions>
[src]

Returns block together with its transactions for the specified height, or None if there is no such block.

Important traits for Blocks<'a>
pub fn blocks<R: Into<HeightRange>>(&self, heights: R) -> Blocks
[src]

Iterates over blocks in the blockchain.

Trait Implementations

impl<'a> Debug for BlockchainExplorer<'a>
[src]

Auto Trait Implementations

impl<'a> !Send for BlockchainExplorer<'a>

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

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

impl<T> Erased for T

impl<T> Same for T

type Output = T

Should always be Self