Type Alias TypedTransaction

Source
pub type TypedTransaction = EthereumTypedTransaction<TxEip4844Variant>;
Expand description

Basic typed transaction which can contain both TxEip4844 and TxEip4844WithSidecar.

Aliased Type§

enum TypedTransaction {
    Legacy(TxLegacy),
    Eip2930(TxEip2930),
    Eip1559(TxEip1559),
    Eip4844(TxEip4844Variant),
    Eip7702(TxEip7702),
}

Variants§

§

Legacy(TxLegacy)

Legacy transaction

§

Eip2930(TxEip2930)

EIP-2930 transaction

§

Eip1559(TxEip1559)

EIP-1559 transaction

§

Eip4844(TxEip4844Variant)

EIP-4844 transaction

§

Eip7702(TxEip7702)

EIP-7702 transaction

Trait Implementations§

Source§

impl From<TxEnvelope> for TypedTransaction

Source§

fn from(envelope: TxEnvelope) -> Self

Converts to this type from the input type.

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 288 bytes

Size for each variant:

  • Legacy: 144 bytes
  • Eip2930: 160 bytes
  • Eip1559: 176 bytes
  • Eip4844: 288 bytes
  • Eip7702: 192 bytes