Trait BlockHash
pub trait BlockHash {
type Error;
// Required method
fn block_hash(&mut self, number: u64) -> Result<FixedBytes<32>, Self::Error>;
}
Required Associated Types§
type Error
Required Methods§
fn block_hash(&mut self, number: u64) -> Result<FixedBytes<32>, Self::Error>
fn block_hash(&mut self, number: u64) -> Result<FixedBytes<32>, Self::Error>
Get block hash by block number