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