Struct terra_rust_api::client::Terra[][src]

pub struct Terra<'a> {
    pub chain_id: &'a str,
    pub gas_options: Option<&'a GasOptions>,
    pub debug: bool,
    // some fields omitted
}
Expand description

The main structure that all API calls are generated from

Fields

chain_id: &'a str

The Chain of the network

gas_options: Option<&'a GasOptions>

Gas Options used to help with gas/fee generation of transactions

debug: bool

Implementations

Create a FULL client interface

Create a read-only / query client interface

Auth API functions

Staking API functions

Market API functions

Oracle API functions

Tendermint (MISC) API Functions

TXS API Functions

WASM module / smart contract API Functions

used to send a GET command to the LCD

used to send a POST with a JSON body to the LCD

Generate Fee structure, either by estimation method or hardcoded

helper function to generate a ‘StdSignMsg’ & ‘Signature’ blocks to be used to broadcast a transaction This version calculates fees, and obtains account# and sequence# as well

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.