reth_storage_api

Trait TransactionsProviderExt

Source
pub trait TransactionsProviderExt: BlockReader {
    // Required method
    fn transaction_hashes_by_range(
        &self,
        tx_range: Range<TxNumber>,
    ) -> ProviderResult<Vec<(TxHash, TxNumber)>>;

    // Provided method
    fn transaction_range_by_block_range(
        &self,
        block_range: RangeInclusive<BlockNumber>,
    ) -> ProviderResult<RangeInclusive<TxNumber>> { ... }
}
Expand description

Client trait for fetching additional transactions related data.

Required Methods§

Source

fn transaction_hashes_by_range( &self, tx_range: Range<TxNumber>, ) -> ProviderResult<Vec<(TxHash, TxNumber)>>

Get transaction hashes from a transaction range.

Provided Methods§

Source

fn transaction_range_by_block_range( &self, block_range: RangeInclusive<BlockNumber>, ) -> ProviderResult<RangeInclusive<TxNumber>>

Get transactions range by block range.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<'a, T: 'a + TransactionsProviderExt + ?Sized> TransactionsProviderExt for &'a T

Source§

fn transaction_range_by_block_range( &self, block_range: RangeInclusive<BlockNumber>, ) -> ProviderResult<RangeInclusive<TxNumber>>

Source§

fn transaction_hashes_by_range( &self, tx_range: Range<TxNumber>, ) -> ProviderResult<Vec<(TxHash, TxNumber)>>

Source§

impl<T: TransactionsProviderExt + ?Sized> TransactionsProviderExt for Arc<T>
where Arc<T>: BlockReader,

Source§

fn transaction_range_by_block_range( &self, block_range: RangeInclusive<BlockNumber>, ) -> ProviderResult<RangeInclusive<TxNumber>>

Source§

fn transaction_hashes_by_range( &self, tx_range: Range<TxNumber>, ) -> ProviderResult<Vec<(TxHash, TxNumber)>>

Implementors§