referrerpolicy=no-referrer-when-downgrade

TransactionStorageApi

Trait TransactionStorageApi 

Source
pub trait TransactionStorageApi<Block: BlockT>: Core<Block> {
    // Provided methods
    fn retention_period(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
    ) -> Result<NumberFor<Block>, ApiError> { ... }
    fn indexed_transactions(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
        block: NumberFor<Block>,
    ) -> Result<Vec<IndexedTransactionInfo>, ApiError> { ... }
}
Expand description

Runtime API trait for transaction storage support.

Provided Methods§

Source

fn retention_period( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, ) -> Result<NumberFor<Block>, ApiError>

Retention period for indexed data, in blocks.

Source

fn indexed_transactions( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, block: NumberFor<Block>, ) -> Result<Vec<IndexedTransactionInfo>, ApiError>

Indexed-transaction metadata for block.

Returns an empty vector if the block has no indexed transactions or is outside the retention window.

Trait Implementations§

Source§

impl<Block: BlockT> RuntimeApiInfo for dyn TransactionStorageApi<Block>

Source§

const ID: [u8; 8]

The identifier of the runtime api.
Source§

const VERSION: u32 = 2u32

The version of the runtime api.

Implementors§