Trait TransactionDataAPI

Source
pub trait TransactionDataAPI {
Show 15 methods // Required methods fn sender(&self) -> Address; fn kind(&self) -> &TransactionKind; fn kind_mut(&mut self) -> &mut TransactionKind; fn into_kind(self) -> TransactionKind; fn gas_data(&self) -> &GasData; fn gas_owner(&self) -> Address; fn gas(&self) -> &[ObjectRef]; fn gas_price(&self) -> u64; fn gas_budget(&self) -> u64; fn expiration(&self) -> &TransactionExpiration; fn is_system_tx(&self) -> bool; fn is_genesis_tx(&self) -> bool; fn is_end_of_epoch_tx(&self) -> bool; fn is_sponsored_tx(&self) -> bool; fn gas_data_mut(&mut self) -> &mut GasData;
}

Required Methods§

Source

fn sender(&self) -> Address

Source

fn kind(&self) -> &TransactionKind

Source

fn kind_mut(&mut self) -> &mut TransactionKind

Source

fn into_kind(self) -> TransactionKind

Source

fn gas_data(&self) -> &GasData

Source

fn gas_owner(&self) -> Address

Source

fn gas(&self) -> &[ObjectRef]

Source

fn gas_price(&self) -> u64

Source

fn gas_budget(&self) -> u64

Source

fn expiration(&self) -> &TransactionExpiration

Source

fn is_system_tx(&self) -> bool

Source

fn is_genesis_tx(&self) -> bool

Source

fn is_end_of_epoch_tx(&self) -> bool

returns true if the transaction is one that is specially sequenced to run at the very end of the epoch

Source

fn is_sponsored_tx(&self) -> bool

Check if the transaction is sponsored (namely gas owner != sender)

Source

fn gas_data_mut(&mut self) -> &mut GasData

Implementors§