Modulesยง
- currency ๐
- data_
source ๐ - errors ๐
- monetary_
value ๐ - query_
data ๐ - traits ๐
Structsยง
- Block
Detail - BlockDetail is a struct that represents the details of a specific block for use in a Block Explorer.
- Block
Detail Response - BlockDetailResponse is a struct that represents the response from the
get_block_detail
endpoint. - Block
Range - BlockRange is a struct that represents a range for a specific set of
blocks, starting at the given
BlockIdentifier
. - Block
Summary - BlockSummary is a struct that represents a summary overview of a specific block. It does not have all of the details of a BlockDetail, but it is useful for displaying information in a list of Blocks.
- Block
Summary Response - BlockSummaryResponse is a struct that represents the response from the
get_block_summaries
endpoint. - Currency
Mismatch Error - CurrencyMismatchError is an error that occurs when two different currencies are attempted to be combined in any way that would result in an invalid state.
- Explorer
Histograms - ExplorerHistograms provides a series of data points that can be used to draw simple histograms for the Block Explorer. The data returned is meant to be an optimal packing of the values being returned.
- Explorer
Summary - ExplorerSummary is a struct that represents an at-a-glance snapshot of the Block Chain. It contains some helpful information that can be used to display a simple health check of the Block Chain.
- Explorer
Summary Response - ExplorerSummaryResponse is a struct that represents the response from the
get_explorer_summary
endpoint. - FeeAttribution
- FeeAttribution represents a specific attribution of fees for a specific purpose.
- Genesis
Overview - GenesisOverview provides a summary overview of the block chain since itโs genesis. At a high level it includes the total number of unique rollups, transactions, and blocks that are in the block chain.
- GetBlock
Summaries Request - GetBlockSummariesRequest is a struct that represents an incoming request for Block Summaries. This isnโt sent on the line, but an endpoint will be mapped to this struct in order for the request to be processed.
- GetTransaction
Summaries Request - GetTransactionSummariesRequest is a struct that represents an incoming request for Transaction Summaries. This isnโt sent on the line, but an endpoint will be mapped to this struct in order for the request to be processed.
- Invalid
Currency Code Error - InvalidCurrencyCodeError is an error that occurs when an invalid currency code representation is encountered. This should only occur when the currency is being decoded from a string representation.
- Monetary
Value - MonetaryValues is a struct that paris a CurrencyCode with a value. This structure is able to represent both positive and negative currencies.
- Search
Result - SearchResult is a struct that represents the results of executing a search query against the chain. It contains a list of blocks and transactions that match the search query.
- Search
Result Response - SearchResultResponse is a struct that represents the response from the
get_search_result
endpoint. - Timestamp
- Timestamp represents a specific point in time that has a possible offset.
- Transaction
Detail - TransactionDetail is a struct that represents the details of a specific transaction / payload contained within a Block.
- Transaction
Detail Response - TransactionDetailResponse is a struct that represents the response from the
get_transaction_detail
endpoint. - Transaction
Detail Response - TransactionDetailResponse is a struct that represents the information returned concerning a request for a Transaction Detail. It contains the data payloads separately from the details of the Transaction itself.
- Transaction
Range - TransactionRange is a struct that represents a range for a specific set of
transactions, starting at the given
TransactionIdentifier
. - Transaction
Summaries Response - TransactionSummariesResponse is a struct that represents the response from the
get_transaction_summaries
endpoint. - Transaction
Summary - TransactionSummary is a struct that represents a summary overview of a specific transaction / payload contained within a Block. It does not have all of the details of a TransactionDetail, but it is useful for displaying information in a list of Transactions.
Enumsยง
- Block
Identifier - BlockIdentifier is an enum that represents multiple ways of referring to a specific Block. These use cases are specific to a Block Explorer and can be used to reference a specific individual block.
- Currency
Code - CurrencyCode represents an enumeration of all representable currency codes that are supported by the API.
- Error
- Error is an enum that represents the various errors that can be returned from the Explorer API.
- GetBlock
Detail Error - GetBlockDetailError represents an error that has occurred in response to
the
get_block_detail
request. - GetBlock
Summaries Error - GetBlockSummariesError represents an error that has occurred in response to the GetBlockSummariesRequest request.
- GetExplorer
Summary Error - GetExplorerSummaryError represents an error that has occurred in response
to the
get_explorer_summary
request. - GetSearch
Results Error - GetSearchResultsError represents an error that has occurred in response
to the
get_search_results
request. - GetTransaction
Detail Error - GetTransactionDetailError represents an error that has occurred in
response to the
get_transaction_detail
request. - GetTransaction
Summaries Error - GetTransactionSummariesError represents an error that has occurred in response to the GetTransactionSummariesRequest request.
- Timestamp
Conversion Error - TimestampConversionError represents an error that has occurred when attempting to convert a timestamp from a specific format to another. It is primarily used when attempting to deserialize a Timestamp from its serialized string representation.
- Transaction
Identifier - TransactionIdentifier is an enum that represents multiple ways of of
identifying a specific Transaction. These use cases are specific to a
Block Explorer and can be used to ideally uniquely identify a
Transaction
within the Block Chain. - Transaction
Summary Filter - TransactionSummaryFilter represents the various filters that can be applied when retrieving a list of TransactionSummary entries.
Traitsยง
- Explorer
Data Source - An interface for querying Data and Statistics from the HotShot Blockchain.
- Explorer
Header - ExplorerHeader is a trait that represents certain extensions to the [BlockHeader] that are specific to the Block Explorer API. This trait allows for the explorer module to be defined and provide an API for any consuming Block Explorer.
- Explorer
Transaction - ExplorerTransaction is a trait that allows the Explorer API to be able to retrieve a namespace id from a transaction. This is necessary for the Explorer API to be able to display the namespace id for a TransactionSummary.
Functionsยง
- define_
api define_api
is a function that defines the API endpoints for the Explorer module of the HotShot Query Service. It implements the specification defined in theexplorer.toml
file.- validate_
limit ๐