Trait WithdrawalsProvider

pub trait WithdrawalsProvider: Send + Sync {
    // Required method
    fn withdrawals_by_block(
        &self,
        id: HashOrNumber,
        timestamp: u64,
    ) -> Result<Option<Withdrawals>, ProviderError>;
}
Available on crate feature provider only.
Expand description

Client trait for fetching [alloy_eips::eip4895::Withdrawal] related data.

Required Methods§

fn withdrawals_by_block( &self, id: HashOrNumber, timestamp: u64, ) -> Result<Option<Withdrawals>, ProviderError>

Get withdrawals by block id.

Implementations on Foreign Types§

§

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

§

fn withdrawals_by_block( &self, id: HashOrNumber, timestamp: u64, ) -> Result<Option<Withdrawals>, ProviderError>

§

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

§

fn withdrawals_by_block( &self, id: HashOrNumber, timestamp: u64, ) -> Result<Option<Withdrawals>, ProviderError>

Implementors§

§

impl<C, N> WithdrawalsProvider for NoopProvider<C, N>
where C: Send + Sync, N: NodePrimitives,

§

impl<N> WithdrawalsProvider for BlockchainProvider<N>

§

impl<N> WithdrawalsProvider for StaticFileJarProvider<'_, N>
where N: NodePrimitives,

§

impl<N> WithdrawalsProvider for StaticFileProvider<N>
where N: NodePrimitives,

§

impl<N> WithdrawalsProvider for ProviderFactory<N>

§

impl<T, ChainSpec> WithdrawalsProvider for MockEthProvider<T, ChainSpec>
where T: Transaction, ChainSpec: EthChainSpec,

§

impl<TX, N> WithdrawalsProvider for DatabaseProvider<TX, N>
where TX: DbTx + 'static, N: NodeTypes, <N as NodeTypes>::ChainSpec: EthereumHardforks,