Trait fuel_tx::Chargeable

source ·
pub trait Chargeable {
    // Required methods
    fn price(&self) -> Word;
    fn limit(&self) -> Word;
    fn metered_bytes_size(&self) -> usize;
}
Expand description

Means that the blockchain charges fee for the transaction.

Required Methods§

source

fn price(&self) -> Word

Returns the gas price.

source

fn limit(&self) -> Word

Returns the gas limit.

source

fn metered_bytes_size(&self) -> usize

Used for accounting purposes when charging byte based fees.

Implementors§