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§
Sourcefn 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.