pub type AlloyConsensusHeader = Header;
Aliased Type§
struct AlloyConsensusHeader {Show 21 fields
pub parent_hash: FixedBytes<32>,
pub ommers_hash: FixedBytes<32>,
pub beneficiary: Address,
pub state_root: FixedBytes<32>,
pub transactions_root: FixedBytes<32>,
pub receipts_root: FixedBytes<32>,
pub logs_bloom: Bloom,
pub difficulty: Uint<256, 4>,
pub number: u64,
pub gas_limit: u64,
pub gas_used: u64,
pub timestamp: u64,
pub extra_data: Bytes,
pub mix_hash: FixedBytes<32>,
pub nonce: FixedBytes<8>,
pub base_fee_per_gas: Option<u64>,
pub withdrawals_root: Option<FixedBytes<32>>,
pub blob_gas_used: Option<u64>,
pub excess_blob_gas: Option<u64>,
pub parent_beacon_block_root: Option<FixedBytes<32>>,
pub requests_hash: Option<FixedBytes<32>>,
}
Fields§
§parent_hash: FixedBytes<32>
The Keccak 256-bit hash of the parent block’s header, in its entirety; formally Hp.
ommers_hash: FixedBytes<32>
The Keccak 256-bit hash of the ommers list portion of this block; formally Ho.
beneficiary: Address
The 160-bit address to which all fees collected from the successful mining of this block be transferred; formally Hc.
state_root: FixedBytes<32>
The Keccak 256-bit hash of the root node of the state trie, after all transactions are executed and finalisations applied; formally Hr.
transactions_root: FixedBytes<32>
The Keccak 256-bit hash of the root node of the trie structure populated with each transaction in the transactions list portion of the block; formally Ht.
receipts_root: FixedBytes<32>
The Keccak 256-bit hash of the root node of the trie structure populated with the receipts of each transaction in the transactions list portion of the block; formally He.
logs_bloom: Bloom
The Bloom filter composed from indexable information (logger address and log topics) contained in each log entry from the receipt of each transaction in the transactions list; formally Hb.
difficulty: Uint<256, 4>
A scalar value corresponding to the difficulty level of this block. This can be calculated from the previous block’s difficulty level and the timestamp; formally Hd.
number: u64
A scalar value equal to the number of ancestor blocks. The genesis block has a number of zero; formally Hi.
gas_limit: u64
A scalar value equal to the current limit of gas expenditure per block; formally Hl.
gas_used: u64
A scalar value equal to the total gas used in transactions in this block; formally Hg.
timestamp: u64
A scalar value equal to the reasonable output of Unix’s time() at this block’s inception; formally Hs.
extra_data: Bytes
An arbitrary byte array containing data relevant to this block. This must be 32 bytes or fewer; formally Hx.
mix_hash: FixedBytes<32>
A 256-bit hash which, combined with the nonce, proves that a sufficient amount of computation has been carried out on this block; formally Hm.
nonce: FixedBytes<8>
A 64-bit value which, combined with the mixhash, proves that a sufficient amount of computation has been carried out on this block; formally Hn.
base_fee_per_gas: Option<u64>
A scalar representing EIP1559 base fee which can move up or down each block according to a formula which is a function of gas used in parent block and gas target (block gas limit divided by elasticity multiplier) of parent block. The algorithm results in the base fee per gas increasing when blocks are above the gas target, and decreasing when blocks are below the gas target. The base fee per gas is burned.
withdrawals_root: Option<FixedBytes<32>>
The Keccak 256-bit hash of the withdrawals list portion of this block. https://eips.ethereum.org/EIPS/eip-4895
blob_gas_used: Option<u64>
The total amount of blob gas consumed by the transactions within the block, added in EIP-4844.
excess_blob_gas: Option<u64>
A running total of blob gas consumed in excess of the target, prior to the block. Blocks with above-target blob gas consumption increase this value, blocks with below-target blob gas consumption decrease it (bounded at 0). This was added in EIP-4844.
parent_beacon_block_root: Option<FixedBytes<32>>
The hash of the parent beacon block’s root is included in execution blocks, as proposed by EIP-4788.
This enables trust-minimized access to consensus state, supporting staking pools, bridges, and more.
The beacon roots contract handles root storage, enhancing Ethereum’s functionalities.
requests_hash: Option<FixedBytes<32>>
The Keccak 256-bit hash of the an RLP encoded list with each EIP-7685 request in the block body.