revm_transaction

Trait CommonTxFields

Source
pub trait CommonTxFields {
    // Required methods
    fn caller(&self) -> Address;
    fn gas_limit(&self) -> u64;
    fn value(&self) -> U256;
    fn input(&self) -> &Bytes;
    fn nonce(&self) -> u64;
}
Expand description

Trait that contains all common field that are shared by all transactions. This trait is base for Legacy, EIp2930 and Eip1559 transactions.

Required Methods§

Source

fn caller(&self) -> Address

Caller aka Author aka transaction signer.

Source

fn gas_limit(&self) -> u64

The maximum amount of gas the transaction can use.

Source

fn value(&self) -> U256

The value sent to the receiver of TxKind::Call.

Source

fn input(&self) -> &Bytes

Returns the input data of the transaction.

Source

fn nonce(&self) -> u64

The nonce of the transaction.

Implementors§