revm_transaction::eip1559

Trait Eip1559CommonTxFields

Source
pub trait Eip1559CommonTxFields: CommonTxFields {
    type AccessList: AccessListTrait;

    // Required methods
    fn chain_id(&self) -> u64;
    fn max_fee_per_gas(&self) -> u128;
    fn max_priority_fee_per_gas(&self) -> u128;
    fn access_list(&self) -> &Self::AccessList;
}
Expand description

This trait is base for Eip1559, EIp4844 and Eip7702 transactions.

Required Associated Types§

Source

type AccessList: AccessListTrait

Access list type.

Required Methods§

Source

fn chain_id(&self) -> u64

Chain id became mandatory in all transaction after EIP-2930.

Source

fn max_fee_per_gas(&self) -> u128

Maximum fee per gas.

Source

fn max_priority_fee_per_gas(&self) -> u128

Maximum priority fee per gas.

Source

fn access_list(&self) -> &Self::AccessList

EIP-1559 access list.

Implementors§