Expand description
Network-native transactions.
Transactions stay in their networkβs Alloy form until execution: tools keep the selected
TransactionRequest or signed
TxEnvelope, mutate common fields through Alloyβs
[TransactionBuilder], and convert once, right before execution, into the familyβs evm2
transaction with FoundryTxConversion. Signed, resumed and replayed transactions convert
from exactly the payload that was signed; nothing is rebuilt from Ethereum-shaped fields.
Re-exportsΒ§
use super::ChainFor;πuse super::FoundryEvmExt;πuse super::FoundryEvmNetwork;πuse super::TxFor;πuse super::TypesFor;πuse alloy_chains::NamedChain;πuse alloy_consensus::BlockHeader;πuse alloy_consensus::EthereumTxEnvelope;πuse alloy_consensus::EthereumTypedTransaction;πuse alloy_consensus::SignableTransaction;πuse alloy_consensus::Signed;πuse alloy_consensus::Transaction;πuse alloy_consensus::TxEip1559;πuse alloy_consensus::TxEip4844Variant;πuse alloy_consensus::Typed2718;πuse alloy_consensus::transaction::Recovered;πuse alloy_consensus::transaction::SignerRecoverable;πuse alloy_eips::Decodable2718;πuse alloy_network::AnyNetwork;πuse alloy_network::AnyRpcBlock;πuse alloy_network::AnyRpcTransaction;πuse alloy_network::AnyTxEnvelope;πuse alloy_network::Network;πuse alloy_network::NetworkTransactionBuilder;πuse alloy_network::TransactionBuilder;πuse alloy_network::TransactionResponse;πuse alloy_primitives::Address;πuse alloy_primitives::Signature;πuse alloy_provider::Provider;πuse alloy_rpc_types::BlockTransactions;πuse alloy_rpc_types::TransactionRequest;πuse evm2::ethereum::LazyTxEip7702;πuse evm2::ethereum::TxEnvelope;πuse eyre::WrapErr;πuse foundry_evm_networks::celo::CELO_DYNAMIC_FEE_TX_TYPE;π
StructsΒ§
- Block
Context - Transactions of a block and its two ancestors, for network state that depends on the block
position of a transaction (see
FoundryEvmExt::for_block).
EnumsΒ§
- TxPayload
- What an execution-time transaction is priced and validated as.
TraitsΒ§
- Foundry
TxConversion - Converts an Alloy networkβs native transactions into an evm2 execution familyβs transactions.
FunctionsΒ§
- block_
txs - Converts every transaction of a full RPC block.
- eth_
envelope_ from_ any_ rpc - Returns the Ethereum envelope of a transaction fetched over RPC.
- eth_tx
- Converts a signed Ethereum envelope into evm2βs Ethereum transaction.
- eth_
tx_ from_ request - Converts a complete unsigned Ethereum request into a simulated evm2 transaction.
- eth_
unsigned_ πtx - Converts an unsigned Ethereum transaction into evm2βs Ethereum transaction.
- fetch_
parent π - Fetches the parent of
block, orNonefor genesis. - full_
transactions π - Returns the transactions of
block, which must contain full transactions. - placeholder_
signature - Placeholder signature used to put an unsigned request into its networkβs envelope.
- unknown_
transaction_ πtype - Returns the error for an RPC transaction whose envelope
targetcannot represent.