Trait alloy_consensus::transaction::Transaction

source ·
pub trait Transaction: Any + Send + Sync + 'static {
    // Required methods
    fn chain_id(&self) -> Option<ChainId>;
    fn nonce(&self) -> u64;
    fn gas_limit(&self) -> u128;
    fn gas_price(&self) -> Option<u128>;
    fn to(&self) -> TxKind;
    fn value(&self) -> U256;
    fn input(&self) -> &[u8] ;
}
Expand description

Represents a minimal EVM transaction.

Required Methods§

source

fn chain_id(&self) -> Option<ChainId>

Get chain_id.

source

fn nonce(&self) -> u64

Get nonce.

source

fn gas_limit(&self) -> u128

Get gas_limit.

source

fn gas_price(&self) -> Option<u128>

Get gas_price.

source

fn to(&self) -> TxKind

Get to.

source

fn value(&self) -> U256

Get value.

source

fn input(&self) -> &[u8]

Get data.

Implementors§