pub struct Terra {
    pub chain_id: String,
    pub gas_options: Option<GasOptions>,
    pub debug: bool,
    /* private fields */
}
Expand description

The main structure that all API calls are generated from

Fields

chain_id: String

The Chain of the network

gas_options: Option<GasOptions>

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

debug: bool

Implementations

Create a LCD client interface

Create a read-only / query client interface

Auth API functions

Bank API functions

Staking API functions

Market API functions

Oracle API functions

Tendermint (MISC) API Functions

TXS API Functions

RPC Api Functions

FCD Api Functions

WASM module / smart contract API Functions

used to send a GET command to the LCD

used to send a GET command to any URL

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

helper: sign & submit the transaction sync

helper: sign & submit the transaction async

fetch the address book for the production network

fetch the address book for the testnet network

fetch a address book json structure

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Returns the argument unchanged.

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

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more