Struct exonum::explorer::BlockchainExplorer
[−]
[src]
pub struct BlockchainExplorer<'a> { /* fields omitted */ }
Blockchain explorer.
Methods
impl<'a> BlockchainExplorer<'a>
[src]
pub fn new(blockchain: &'a Blockchain) -> Self
[src]
Creates a new BlockchainExplorer
instance.
pub fn tx_info(&self, tx_hash: &Hash) -> Result<Option<TxInfo>, ApiError>
[src]
Returns information about the transaction identified by the hash.
pub fn block_info(&self, height: Height) -> Option<BlockInfo>
[src]
Returns block information for the specified height or None
if there is no such block.
pub fn blocks_range(
&self,
count: u64,
upper: Option<u64>,
skip_empty_blocks: bool
) -> BlocksRange
[src]
&self,
count: u64,
upper: Option<u64>,
skip_empty_blocks: bool
) -> BlocksRange
Returns the list of blocks in the given range.
pub fn transaction_result(&self, hash: &Hash) -> Option<TransactionResult>
[src]
Returns transaction result.