[−][src]Struct exonum::explorer::BlockchainExplorer
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]
impl<'a> BlockchainExplorer<'a>
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>
ⓘ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]
impl<'a> Debug for BlockchainExplorer<'a>
Auto Trait Implementations
impl<'a> !Send for BlockchainExplorer<'a>
impl<'a> !Send for BlockchainExplorer<'a>
impl<'a> !Sync for BlockchainExplorer<'a>
impl<'a> !Sync for BlockchainExplorer<'a>
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |
impl<T> Erased for T
impl<T> Erased for T
impl<T> Erased for T
impl<T> Erased for T
impl<T> Same for T
impl<T> Same for T
type Output = T
Should always be Self