Skip to main content

Module block

Module block 

Source

Re-exportsยง

use super::transaction::TransactionInfo; ๐Ÿ”’
use crate::eth::transaction::MaybeImpersonatedTransaction; ๐Ÿ”’
use alloy_consensus::BlockBody; ๐Ÿ”’
use alloy_consensus::BlockHeader; ๐Ÿ”’
use alloy_consensus::EMPTY_OMMER_ROOT_HASH; ๐Ÿ”’
use alloy_consensus::Typed2718; ๐Ÿ”’
use alloy_consensus::proofs::ordered_trie_root_with_encoder; ๐Ÿ”’
use alloy_eips::eip2718::Encodable2718; ๐Ÿ”’
use alloy_network::Network; ๐Ÿ”’
use foundry_primitives::FoundryHeader; ๐Ÿ”’
use foundry_primitives::FoundryTxEnvelope; ๐Ÿ”’

Structsยง

BlockInfo
Container type that gathers all block data, generic over a [Network].

Traitsยง

EncodableBlockTransaction
A transaction that can be encoded for inclusion in a block body.

Functionsยง

canonical_block
Returns a block whose transactions use canonical block-body representations.
create_block
Helper function to create a new block with Header and Anvil transactions, generic over the transaction envelope with a default of FoundryTxEnvelope.

Type Aliasesยง

Block
Type alias for a block containing potentially impersonated transactions.