Trait WithdrawalsProvider
pub trait WithdrawalsProvider: Send + Sync {
// Required method
fn withdrawals_by_block(
&self,
id: HashOrNumber,
timestamp: u64,
) -> Result<Option<Withdrawals>, ProviderError>;
}
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>
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
impl<'a, T> WithdrawalsProvider for &'a T
fn withdrawals_by_block( &self, id: HashOrNumber, timestamp: u64, ) -> Result<Option<Withdrawals>, ProviderError>
§impl<T> WithdrawalsProvider for Arc<T>
impl<T> WithdrawalsProvider for Arc<T>
fn withdrawals_by_block( &self, id: HashOrNumber, timestamp: u64, ) -> Result<Option<Withdrawals>, ProviderError>
Implementors§
impl WithdrawalsProvider for MockEthProvider
Available on crate feature
test-utils
only.