pub trait WithdrawalsProvider: Send + Sync {
// Required method
fn withdrawals_by_block(
&self,
id: BlockHashOrNumber,
timestamp: u64,
) -> ProviderResult<Option<Withdrawals>>;
}
Expand description
Client trait for fetching [alloy_eips::eip4895::Withdrawal
] related data.
Required Methods§
Sourcefn withdrawals_by_block(
&self,
id: BlockHashOrNumber,
timestamp: u64,
) -> ProviderResult<Option<Withdrawals>>
fn withdrawals_by_block( &self, id: BlockHashOrNumber, timestamp: u64, ) -> ProviderResult<Option<Withdrawals>>
Get withdrawals by block id.