Trait sp_transaction_storage_proof::IndexedBody

source ·
pub trait IndexedBody<B: BlockT> {
    // Required methods
    fn block_indexed_body(
        &self,
        number: NumberFor<B>,
    ) -> Result<Option<Vec<Vec<u8>>>, Error>;
    fn number(&self, hash: B::Hash) -> Result<Option<NumberFor<B>>, Error>;
}
Expand description

An interface to request indexed data from the client.

Required Methods§

source

fn block_indexed_body( &self, number: NumberFor<B>, ) -> Result<Option<Vec<Vec<u8>>>, Error>

Get all indexed transactions for a block, including renewed transactions.

Note that this will only fetch transactions that are indexed by the runtime with storage_index_transaction.

source

fn number(&self, hash: B::Hash) -> Result<Option<NumberFor<B>>, Error>

Get block number for a block hash.

Implementors§