Expand description
Queries for HotShot chain state.
The availability API provides an objective view of the HotShot blockchain. It provides access only to normative data: that is, data which is agreed upon by all honest consensus nodes and which is immutable. This means access to core consensus data structures including leaves, blocks, and headers, where each query is pure and idempotent. This also means that it is possible for a client to verify all of the information provided by this API, by running a HotShot light client and downloading the appropriate evidence with each query.
This API does not provide any queries which represent only the current state of the chain or may change over time, and it does not provide information for which there is not (yet) agreement of a supermajority of consensus nodes. For information about the current dynamic state of consensus and uncommitted state, try the status API. For information about the chain which is tabulated by this specific node and not subject to full consensus agreement, try the node API.
Modulesยง
- data_
source ๐ - fetch ๐
- query_
data ๐
Structsยง
- ADVZ
Common Query Data - The old VidCommonQueryData, associated with ADVZ VID Scheme.
- ADVZ
Payload Query Data - Block
Info - Information about a block.
- Block
Query Data - Block
Summary Query Data - Custom
Snafu - SNAFU context selector for the
Error::Custom
variant - Fetch
Block Snafu - SNAFU context selector for the
Error::FetchBlock
variant - Fetch
Header Snafu - SNAFU context selector for the
Error::FetchHeader
variant - Fetch
Leaf Snafu - SNAFU context selector for the
Error::FetchLeaf
variant - Fetch
State Cert Snafu - SNAFU context selector for the
Error::FetchStateCert
variant - Fetch
Transaction Snafu - SNAFU context selector for the
Error::FetchTransaction
variant - Header
Query Data - Inconsistent
Leaf Error - Inconsistent
Leaf Legacy Error - Invalid
Transaction Index Snafu - SNAFU context selector for the
Error::InvalidTransactionIndex
variant - Leaf1
Query Data - Leaf
Query Data - Leaf
Query Data Legacy - Limits
- Namespace
Info - Options
- Payload
Metadata - A summary of a payload without all the data.
- Payload
Query Data - Query
Snafu - SNAFU context selector for the
Error::Query
variant - Range
Limit Snafu - SNAFU context selector for the
Error::RangeLimit
variant - Request
Snafu - SNAFU context selector for the
Error::Request
variant - State
Cert Query Data - Transaction
Index - Transaction
Query Data - Transaction
Summary Query Data - VidCommon
Metadata - A summary of a VID payload without all the data.
- VidCommon
Query Data
Enumsยง
Traitsยง
- Availability
Data Source - An interface for querying a HotShot blockchain.
- Queryable
Header - Queryable
Payload - A block payload whose contents (e.g. individual transactions) can be examined.
- Update
Availability Data
Functionsยง
- define_
api - downgrade_
leaf ๐ - downgrade_
leaf_ ๐query_ data - downgrade_
vid_ ๐common_ query_ data - enforce_
range_ ๐limit - get_
leaf_ ๐handler - get_
leaf_ ๐range_ handler - get_
vid_ ๐common_ handler
Type Aliasesยง
- Block
Hash - A block hash is the hash of the block header.
- Fetch
Stream - Leaf
Hash - Leaf
Hash Legacy - Namespace
Id - Namespace
Index - Namespace
Map - QcHash
- Timestamp
- Transaction
Hash - Transaction
Inclusion Proof