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
impl RefUnwindSafe for GasOptions
impl RefUnwindSafe for GasOptions
impl Send for GasOptions
impl Send for GasOptions
impl Sync for GasOptions
impl Sync for GasOptions
impl Unpin for GasOptions
impl Unpin for GasOptions
impl UnwindSafe for GasOptions
impl UnwindSafe for GasOptions
Blanket Implementations
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self