Skip to main content
Transaction is a discriminated union (Transaction.Any) and codec covering all five Ethereum transaction formats: Legacy (Type 0x00), EIP-2930 (Type 0x01), EIP-1559 (Type 0x02), EIP-4844 (Type 0x03), and EIP-7702 (Type 0x04).

Transaction Types

Quick Start

Import from @tevm/voltaire or @tevm/voltaire/Transaction. Type-specific sub-namespaces are exposed as Transaction.Legacy, Transaction.EIP2930, Transaction.EIP1559, Transaction.EIP4844, and Transaction.EIP7702.

API Reference

Serialization, Hashing & RPC

Inspection, Validation & Immutable Builders

Effective Gas Price Formula

For EIP-1559, EIP-4844, and EIP-7702 transactions given block baseFee: effectiveGasPrice=min⁡(maxFeePerGas, baseFee+maxPriorityFeePerGas)\text{effectiveGasPrice} = \min(\text{maxFeePerGas},\ \text{baseFee} + \text{maxPriorityFeePerGas})
  • AccessList — EIP-2930 warm storage access lists
  • Blob — EIP-4844 blob payloads and versioned hashes
  • Authorization — EIP-7702 delegation tuples
  • FeeMarket — EIP-1559 and EIP-4844 fee calculations
  • Receipt — Execution receipts and logs