[−][src]Crate exonum_explorer
Blockchain explorer allows to get information about blocks and transactions in the blockchain. It allows to request transactions from a block together with the execution statuses, iterate over blocks, etc.
This crate is distinct from the explorer service crate. While this crate
provides Rust language APIs for retrieving info from the blockchain, the explorer service
translates these APIs into REST and WebSocket endpoints. Correspondingly, this crate is
primarily useful for Rust-language client apps. Another use case is testing; the testkit
returns BlockWithTransactions
from its create_block*
methods and re-exports the entire
crate as explorer
.
See the examples in the crate for examples of usage.
Modules
api | Types used in the explorer API. |
Structs
BlockInfo | Information about a block in the blockchain. |
BlockWithTransactions | Information about a block in the blockchain with info on transactions eagerly loaded. |
BlockchainExplorer | Blockchain explorer. |
Blocks | Iterator over blocks in the blockchain. |
CommittedTransaction | Information about a particular transaction in the blockchain. |
ErrorWithLocation | Execution error together with its location within the block. |
Transactions | Iterator over transactions in a block. |
Enums
TransactionInfo | Information about the transaction. |
Functions
median_precommits_time | Calculates a median time from precommits. |
Type Definitions
EagerTransactions | Iterator over transactions in |