Expand description
Transaction types.
Re-exports§
pub use pooled::PooledTransaction;
pub use eip4844::TxEip4844;
pub use eip4844::TxEip4844Variant;
pub use eip4844::TxEip4844WithSidecar;
Modules§
- eip4844
- [EIP-4844] constants, helpers, and types.
- eip4844_
utils - Utilities for working with EIP-4844 field elements and implementing
SidecarCoder
. - pooled
- Defines the exact transaction variant that are allowed to be propagated over the eth p2p protocol.
- serde_
bincode_ compat serde
andserde-bincode-compat
- Bincode-compatible serde implementations for transaction types.
- signed_
legacy_ serde serde
- Helper module for encoding signatures of transactions wrapped into
Signed
in legacy format.
Structs§
- Blob
Transaction Sidecar - This represents a set of blobs, and its corresponding commitments and proofs.
- Recovered
- Signed object with recovered signer.
- Sidecar
Builder - Build a
BlobTransactionSidecar
from an arbitrary amount of data. - Simple
Coder - Simple coder that only uses the last 31 bytes of each blob. This is the
default coder for the
SidecarBuilder
. - Transaction
Info - Additional fields in the context of a (maybe) pending block that contains this transaction.
- Transaction
Meta - Additional fields in the context of a block that contains this mined transaction.
- TxEip1559
- A transaction with a priority fee (EIP-1559).
- TxEip2930
- Transaction with an
AccessList
(EIP-2930). - TxEip7702
- A transaction with a priority fee (EIP-7702).
- TxLegacy
- Legacy transaction.
Enums§
- Blob
Transaction Validation Error kzg
- An error that can occur when validating a BlobTransactionSidecar::validate.
- Either
- Re-export for convenience
The enum
Either
with variantsLeft
andRight
is a general purpose sum type with two cases. - Ethereum
Typed Transaction - The TypedTransaction enum represents all Ethereum transaction request types.
- TxEnvelope
- The Ethereum EIP-2718 Transaction Envelope.
- TxType
- Ethereum
TransactionType
flags as specified in EIPs 2718, 1559, 2930, 4844, and 7702.
Traits§
- Sidecar
Coder - A strategy for coding and decoding data into sidecars.
- Signable
Transaction - A signable transaction.
- Signer
Recoverable - A type that can recover the signer of a transaction.
- Transaction
- Represents a minimal EVM transaction.
Functions§
- from_
eip155_ value - Helper for decoding EIP-155
v
value intoy_parity
boolean and optionalchain_id
. - to_
eip155_ value - Helper for encoding
y_parity
boolean and optionalchain_id
into EIP-155v
value.
Type Aliases§
- Blob
- A Blob serialized as 0x-prefixed hex string
- Bytes48
- A commitment/proof serialized as 0x-prefixed hex string
- Typed
Transaction - Basic typed transaction which can contain both
TxEip4844
andTxEip4844WithSidecar
.