Module transaction

Source
Expand description

Transaction types.

Re-exports§

pub use signature::recover_signer;
pub use signature::recover_signer_unchecked;

Modules§

serde_bincode_compatserde-bincode-compat
Bincode-compatible transaction type serde implementations.
signature
Handling transaction signature operations, including signature recovery, applying chain IDs, and EIP-2 validation.
util
Utility functions for signature.

Structs§

BlobTransactionc-kzg
A response to GetPooledTransactions that includes blob data, their commitments, and their corresponding proofs.
RecoveredTx
Signed transaction with recovered signer.
TransactionMeta
Additional fields in the context of a block that contains this transaction.
TransactionSigned
Signed transaction.
WithEncoded
Generic wrapper with encoded Bytes, such as transaction data.

Enums§

InvalidTransactionError
Represents error variants that can happen when trying to validate a transaction.
PooledTransactionsElement
A response to GetPooledTransactions. This can include either a blob transaction, or a non-4844 signed transaction.
Transaction
A raw transaction.
TransactionConversionError
Represents error variants that can happen when trying to convert a transaction to pooled transaction.
TryFromRecoveredTransactionError
Represents error variants than can happen when trying to convert a recovered transaction.
TxType
Transaction Type

Constants§

COMPACT_EXTENDED_IDENTIFIER_FLAGreth-codec
For backwards compatibility purposes only 2 bits of the type are encoded in the identifier parameter. In the case of a COMPACT_EXTENDED_IDENTIFIER_FLAG, the full transaction type is read from the buffer as a single byte.
COMPACT_IDENTIFIER_EIP1559reth-codec
Identifier parameter for EIP-1559 transaction
COMPACT_IDENTIFIER_EIP2930reth-codec
Identifier parameter for EIP-2930 transaction
COMPACT_IDENTIFIER_LEGACYreth-codec
Identifier parameter for legacy transaction

Statics§

PARALLEL_SENDER_RECOVERY_THRESHOLD
Expected number of transactions where we can expect a speed-up by recovering the senders in parallel.

Traits§

FillTxEnv
Implements behaviour to fill a [TxEnv] from another transaction.
SignedTransactionIntoRecoveredExt
Extension trait for [SignedTransaction] to convert it into RecoveredTx.

Functions§

recover_signers
Recovers a list of signers from a transaction list iterator.
recover_signers_unchecked
Recovers a list of signers from a transaction list iterator without ensuring that the signature has a low s value.

Type Aliases§

PooledTransactionsElementEcRecovered
A signed pooled transaction with recovered signer.
TransactionSignedEcRecovered
Type alias kept for backward compatibility.