Type Alias EthBlockHeader

Source
pub type EthBlockHeader = RlpHeader<Header>;
Expand description

EvmBlockHeader for Ethereum.

Aliased Type§

struct EthBlockHeader { /* private fields */ }

Trait Implementations§

Source§

impl EvmBlockHeader for EthBlockHeader

Source§

type Spec = SpecId

Associated type for the EVM specification (e.g., London, Shanghai)
Source§

fn parent_hash(&self) -> &B256

Returns the hash of the parent block’s header.
Source§

fn number(&self) -> BlockNumber

Returns the block number.
Source§

fn timestamp(&self) -> u64

Returns the block timestamp.
Source§

fn state_root(&self) -> &B256

Returns the state root hash.
Source§

fn receipts_root(&self) -> &B256

Returns the receipts root hash of the block.
Source§

fn logs_bloom(&self) -> &Bloom

Returns the logs bloom filter of the block
Source§

fn to_block_env(&self, spec: SpecId) -> BlockEnv

Returns the EVM block environment equivalent to this block header.