pub trait BlockHashRef {
type Error: StdError;
// Required method
fn block_hash(&self, number: u64) -> Result<B256, Self::Error>;
}
Expand description
Trait for immutable access to block hash data. This is typically used for read-only database implementations or when block hash data is pre-loaded.
Required Associated Types§
Required Methods§
Sourcefn block_hash(&self, number: u64) -> Result<B256, Self::Error>
fn block_hash(&self, number: u64) -> Result<B256, Self::Error>
Gets block hash by block number.