reth_provider

Trait TransactionsProviderExt

pub trait TransactionsProviderExt: BlockReader {
    // Required method
    fn transaction_hashes_by_range(
        &self,
        tx_range: Range<u64>,
    ) -> Result<Vec<(FixedBytes<32>, u64)>, ProviderError>;

    // Provided method
    fn transaction_range_by_block_range(
        &self,
        block_range: RangeInclusive<u64>,
    ) -> Result<RangeInclusive<u64>, ProviderError> { ... }
}
Expand description

Client trait for fetching additional transactions related data.

Required Methods§

fn transaction_hashes_by_range( &self, tx_range: Range<u64>, ) -> Result<Vec<(FixedBytes<32>, u64)>, ProviderError>

Get transaction hashes from a transaction range.

Provided Methods§

fn transaction_range_by_block_range( &self, block_range: RangeInclusive<u64>, ) -> Result<RangeInclusive<u64>, ProviderError>

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§

§

impl<'a, T> TransactionsProviderExt for &'a T

§

impl<T> TransactionsProviderExt for Arc<T>

Implementors§

Source§

impl<N: FullNodePrimitives<SignedTx: Value, Receipt: Value, BlockHeader: Value>> TransactionsProviderExt for StaticFileProvider<N>

Source§

impl<TX: DbTx + 'static, N: NodeTypesForProvider> TransactionsProviderExt for DatabaseProvider<TX, N>