Trait reth_storage_api::RequestsProvider

source ·
pub trait RequestsProvider: Send + Sync {
    // Required method
    fn requests_by_block(
        &self,
        id: BlockHashOrNumber,
        timestamp: u64,
    ) -> ProviderResult<Option<Requests>>;
}
Expand description

Client trait for fetching EIP-7685 [Requests] for blocks.

Required Methods§

source

fn requests_by_block( &self, id: BlockHashOrNumber, timestamp: u64, ) -> ProviderResult<Option<Requests>>

Get withdrawals by block id.

Implementations on Foreign Types§

source§

impl<'a, T: 'a + RequestsProvider + ?Sized> RequestsProvider for &'a T
where &'a T: Send + Sync,

source§

fn requests_by_block( &self, id: BlockHashOrNumber, timestamp: u64, ) -> ProviderResult<Option<Requests>>

source§

impl<T: RequestsProvider + ?Sized> RequestsProvider for Arc<T>
where Arc<T>: Send + Sync,

source§

fn requests_by_block( &self, id: BlockHashOrNumber, timestamp: u64, ) -> ProviderResult<Option<Requests>>

Implementors§