[][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(snapshot: &'a dyn Snapshot) -> Self[src]

Creates a new BlockchainExplorer instance from the provided snapshot.

pub fn from_schema(schema: Schema<&'a dyn Snapshot>) -> Self[src]

Creates a new BlockchainExplorer instance from the core schema.

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

Returns information about the transaction identified by the hash.

pub fn call_status(
    &self,
    block_height: Height,
    call_location: CallInBlock
) -> Result<(), ExecutionError>
[src]

Returns the status of a call in a block.

Return value

This method will return Ok(()) both if the call completed successfully, or if was not performed at all. The caller is responsible to distinguish these two outcomes.

pub fn transaction_without_proof(
    &self,
    tx_hash: &Hash
) -> Option<Verified<AnyTx>>
[src]

Return transaction message without proof.

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

Return 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]

Return a block together with its transactions at the specified height, or None if there is no such block.

pub fn blocks<R: RangeBounds<Height>>(&self, heights: R) -> Blocks[src]

Iterates over blocks in the blockchain.

Trait Implementations

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

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

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

Auto Trait Implementations

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

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

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

impl<'a> Unpin for BlockchainExplorer<'a>

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

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,