Versions in this module Expand all Collapse all v0 v0.6.0 Dec 14, 2021 Changes in this version + const DefaultBroadcastMode + const DefaultChainID + const DefaultClientHost + const DefaultClientTimeout + const DefaultClientTimeoutRetry + const DefaultCoinDenom + const DefaultSignMode + func NewGasEstimator(gasPerByte pack.U256) gas.Estimator + func NewTxBuilder(options TxBuilderOptions, client *Client) account.TxBuilder + type Address sdk.AccAddress + func (addr Address) AccAddress() sdk.AccAddress + func (addr Address) String() string + type AddressDecoder struct + func NewAddressDecoder() AddressDecoder + func (decoder AddressDecoder) DecodeAddress(addr address.Address) (address.RawAddress, error) + type AddressEncodeDecoder struct + func NewAddressEncodeDecoder() AddressEncodeDecoder + type AddressEncoder struct + func NewAddressEncoder() AddressEncoder + func (encoder AddressEncoder) EncodeAddress(rawAddr address.RawAddress) (address.Address, error) + type Client struct + func NewClient(opts ClientOptions, cdc codec.Codec, txConfig cosmClient.TxConfig, ...) *Client + func (client *Client) AccountBalance(ctx context.Context, addr address.Address) (pack.U256, error) + func (client *Client) AccountNonce(ctx context.Context, addr address.Address) (pack.U256, error) + func (client *Client) AccountNumber(ctx context.Context, addr address.Address) (pack.U64, error) + func (client *Client) LatestBlock(ctx context.Context) (pack.U64, error) + func (client *Client) SubmitTx(ctx context.Context, tx account.Tx) error + func (client *Client) Tx(ctx context.Context, txHash pack.Bytes) (account.Tx, pack.U64, error) + type ClientOptions struct + BroadcastMode pack.String + ChainID pack.String + CoinDenom pack.String + Host pack.String + Timeout time.Duration + TimeoutRetry time.Duration + func DefaultClientOptions() ClientOptions + func (opts ClientOptions) WithBroadcastMode(broadcastMode pack.String) ClientOptions + func (opts ClientOptions) WithChainID(chainid pack.String) ClientOptions + func (opts ClientOptions) WithCoinDenom(coinDenom pack.String) ClientOptions + func (opts ClientOptions) WithHost(host pack.String) ClientOptions + func (opts ClientOptions) WithTimeout(timeout time.Duration) ClientOptions + func (opts ClientOptions) WithTimeoutRetry(timeoutRetry time.Duration) ClientOptions + type Coin struct + Amount pack.U64 + Denom pack.String + type Coins []Coin + func (coins Coins) Coins() types.Coins + type GasEstimator struct + func (gasEstimator *GasEstimator) EstimateGas(ctx context.Context) (pack.U256, pack.U256, error) + type MsgSend struct + Amount Coins + FromAddress Address + ToAddress Address + func (msg MsgSend) Msg() types.Msg + type Tx struct + func (t *Tx) Sign(signatures []pack.Bytes65, pubKey pack.Bytes) error + func (t Tx) From() address.Address + func (t Tx) Hash() pack.Bytes + func (t Tx) Nonce() pack.U256 + func (t Tx) Payload() contract.CallData + func (t Tx) Serialize() (pack.Bytes, error) + func (t Tx) Sighashes() ([]pack.Bytes32, error) + func (t Tx) To() address.Address + func (t Tx) Value() pack.U256 + type TxBuilderOptions struct + ChainID pack.String + func DefaultTxBuilderOptions() TxBuilderOptions + func (opts TxBuilderOptions) WithChainID(chainID pack.String) TxBuilderOptions