pub trait BlockHeader {
// Required methods
fn beneficiary(&self) -> Address;
fn difficulty(&self) -> U256;
fn number(&self) -> BlockNumber;
fn gas_limit(&self) -> u64;
fn timestamp(&self) -> u64;
fn mix_hash(&self) -> B256;
fn base_fee_per_gas(&self) -> Option<u64>;
fn excess_blob_gas(&self) -> Option<u64>;
}
Expand description
Trait for extracting specific Ethereum block data from a header
Required Methods§
Sourcefn beneficiary(&self) -> Address
fn beneficiary(&self) -> Address
Retrieves the beneficiary (miner) of the block
Sourcefn difficulty(&self) -> U256
fn difficulty(&self) -> U256
Retrieves the difficulty of the block
Sourcefn base_fee_per_gas(&self) -> Option<u64>
fn base_fee_per_gas(&self) -> Option<u64>
Retrieves the base fee per gas of the block, if available
Sourcefn excess_blob_gas(&self) -> Option<u64>
fn excess_blob_gas(&self) -> Option<u64>
Retrieves the excess blob gas of the block, if available