Struct terra_rust_api::GasOptions[][src]

pub struct GasOptions {
    pub fees: Option<Coin>,
    pub estimate_gas: bool,
    pub gas: Option<u64>,
    pub gas_price: Option<Coin>,
    pub gas_adjustment: Option<f64>,
}

When Submitting transactions you need to either submit gas or a fee to the validator This structure is used to determine what your preferences are by default Higher fees may be given preference by the validator to include the transaction in their block

Fields

fees: Option<Coin>

If specified the TX will use the fee specified

estimate_gas: bool

if true, the server will call the ‘estimate_transaction’ to get an estimate. This estimate is then multiplied by the gas_adjustment field

gas: Option<u64>

your estimate of the gas to use.

gas_price: Option<Coin>

used to calculate the fee .. gas * gas_price

gas_adjustment: Option<f64>

used to adjust the estimate

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.