referrerpolicy=no-referrer-when-downgrade
sp_transaction_storage_proof

Trait 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§

impl<BE, E, B, RA> IndexedBody<B> for Client<BE, E, B, RA>
where BE: Backend<B>, E: CallExecutor<B>, B: BlockT,