Module sc_client_api::client
source · Expand description
A set of APIs supported by the client along with their primitives.
Structs
- Summary of an imported block
- Client info
- Summary of a finalized block.
- I/O statistics for client instance.
- Memory statistics for client instance.
- A wrapper to store the size of some memory.
- Usage statistics for running client instance.
Traits
- Interface for fetching block data.
- Figure out the block type for a given type (for now, just a
Client
). - A source of blockchain events.
- Interface to perform auxiliary actions before committing a block import or finality operation.
- Provide a list of potential uncle headers for a given block.
Type Definitions
- List of operations to be performed on storage aux data. First tuple element is the encoded data key. Second tuple element is the encoded optional data to write. If
None
, the key and the associated data are deleted from storage. - Known bad block hashes.
- A stream of block finality notifications.
- Expected hashes of blocks at given heights.
- Type that implements
futures::Stream
of block import events. - Callback invoked before committing the operations created during block finalization. This gives the opportunity to perform auxiliary pre-commit actions and optionally enqueue further storage write operations to be atomically performed on commit.
- Callback invoked before committing the operations created during block import. This gives the opportunity to perform auxiliary pre-commit actions and optionally enqueue further storage write operations to be atomically performed on commit.