pub trait WithdrawalsProvider: Send + Sync {
// Required methods
fn withdrawals_by_block(
&self,
id: BlockHashOrNumber,
timestamp: u64,
) -> ProviderResult<Option<Withdrawals>>;
fn latest_withdrawal(&self) -> ProviderResult<Option<Withdrawal>>;
}
Expand description
Client trait for fetching [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.
Sourcefn latest_withdrawal(&self) -> ProviderResult<Option<Withdrawal>>
fn latest_withdrawal(&self) -> ProviderResult<Option<Withdrawal>>
Get latest withdrawal from this block or earlier .