[−][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]
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]
&self,
block_height: Height,
call_location: CallInBlock
) -> Result<(), ExecutionError>
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]
&self,
tx_hash: &Hash
) -> Option<Verified<AnyTx>>
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]
fn clone(&self) -> BlockchainExplorer<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,