Expand description
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§
- Block
Info - Information about a block in the blockchain.
- Block
With Transactions - Information about a block in the blockchain with info on transactions eagerly loaded.
- Blockchain
Explorer - Blockchain explorer.
- Blocks
- Iterator over blocks in the blockchain.
- Committed
Transaction - Information about a particular transaction in the blockchain.
- Error
With Location - Execution error together with its location within the block.
- Transactions
- Iterator over transactions in a block.
Enums§
- Transaction
Info - Information about the transaction.
Functions§
- median_
precommits_ time - Calculates a median time from precommits.
Type Aliases§
- Eager
Transactions - Iterator over transactions in
BlockWithTransactions.