Documentation ¶
Index ¶
- type Client
- func (c *Client) BroadcastTx(tx []byte) (string, error)
- func (c *Client) CalculateGas(txf clientTx.Factory, msgs ...types.Msg) (uint64, error)
- func (c *Client) ChangeEndpoint()
- func (c *Client) ConstructAndSignTx(msgs ...types.Msg) ([]byte, error)
- func (c *Client) Ctx() client.Context
- func (c *Client) CurrentEndpointIndex() int
- func (c *Client) GetAccount() (client.Account, error)
- func (c *Client) GetAccountPrefix() string
- func (c *Client) GetBlockTxs(height int64) ([]*types.TxResponse, error)
- func (c *Client) GetBlockTxsWithParseErrSkip(height int64) ([]*types.TxResponse, error)
- func (c *Client) GetChainId() (string, error)
- func (c *Client) GetCurrentBLockAndTimestamp() (int64, int64, error)
- func (c *Client) GetCurrentBlockHeight() (int64, error)
- func (c *Client) GetDenom() string
- func (c *Client) GetFromAddress() types.AccAddress
- func (c *Client) GetFromName() string
- func (c *Client) GetLegacyAmino() *codec.LegacyAmino
- func (c *Client) GetRpcClient() *rpcClient.Client
- func (c *Client) GetSequence(height int64, addr types.AccAddress) (uint64, error)
- func (c *Client) GetTxConfig() client.TxConfig
- func (c *Client) GetTxs(events []string, page, limit int, orderBy string) (*types.SearchTxsResult, error)
- func (c *Client) GetTxsWithParseErrSkip(events []string, page, limit int, orderBy string) (*types.SearchTxsResult, int, error)
- func (c *Client) QueryAccount(addr types.AccAddress) (client.Account, error)
- func (c *Client) QueryBalance(addr types.AccAddress, denom string, height int64) (*xBankTypes.QueryBalanceResponse, error)
- func (c *Client) QueryBlock(height int64) (*ctypes.ResultBlock, error)
- func (c *Client) QueryBondedDenom() (*xStakeTypes.QueryParamsResponse, error)
- func (c *Client) QuerySmartContractState(contract string, req []byte) (*xWasmTypes.QuerySmartContractStateResponse, error)
- func (c *Client) QuerySmartContractStateWithHeight(contract string, req []byte, height int64) (*xWasmTypes.QuerySmartContractStateResponse, error)
- func (c *Client) QueryTxByHash(hashHexStr string) (*types.TxResponse, error)
- func (c *Client) Retry(f func() (interface{}, error)) (interface{}, error)
- func (c *Client) SendContractExecuteMsg(contract string, msg []byte, amount types.Coins) (string, error)
- func (c *Client) SetAccountPrefix(prefix string)
- func (c *Client) SetFromName(fromName string) error
- func (c *Client) SetGasPrice(gasPrice string) error
- func (c *Client) Sign(fromName string, toBeSigned []byte) ([]byte, cryptoTypes.PubKey, error)
- func (c *Client) SingleTransferTo(toAddr types.AccAddress, amount types.Coins) error
- type EncodingConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CalculateGas ¶
func (*Client) ChangeEndpoint ¶
func (c *Client) ChangeEndpoint()
func (*Client) ConstructAndSignTx ¶
func (*Client) CurrentEndpointIndex ¶
func (*Client) GetAccountPrefix ¶
func (*Client) GetBlockTxs ¶
func (c *Client) GetBlockTxs(height int64) ([]*types.TxResponse, error)
func (*Client) GetBlockTxsWithParseErrSkip ¶
func (c *Client) GetBlockTxsWithParseErrSkip(height int64) ([]*types.TxResponse, error)
GetBlockTxsWithParseErrSkip will skip txs that parse failed
func (*Client) GetChainId ¶
func (*Client) GetCurrentBLockAndTimestamp ¶
func (*Client) GetCurrentBlockHeight ¶
func (*Client) GetFromAddress ¶
func (c *Client) GetFromAddress() types.AccAddress
func (*Client) GetFromName ¶
func (*Client) GetLegacyAmino ¶
func (c *Client) GetLegacyAmino() *codec.LegacyAmino
func (*Client) GetRpcClient ¶
func (*Client) GetSequence ¶
func (*Client) GetTxConfig ¶
func (*Client) GetTxsWithParseErrSkip ¶
func (*Client) QueryAccount ¶
func (*Client) QueryBalance ¶
func (c *Client) QueryBalance(addr types.AccAddress, denom string, height int64) (*xBankTypes.QueryBalanceResponse, error)
func (*Client) QueryBlock ¶
func (c *Client) QueryBlock(height int64) (*ctypes.ResultBlock, error)
func (*Client) QueryBondedDenom ¶
func (c *Client) QueryBondedDenom() (*xStakeTypes.QueryParamsResponse, error)
func (*Client) QuerySmartContractState ¶
func (c *Client) QuerySmartContractState(contract string, req []byte) (*xWasmTypes.QuerySmartContractStateResponse, error)
func (*Client) QuerySmartContractStateWithHeight ¶
func (c *Client) QuerySmartContractStateWithHeight(contract string, req []byte, height int64) (*xWasmTypes.QuerySmartContractStateResponse, error)
func (*Client) QueryTxByHash ¶
func (c *Client) QueryTxByHash(hashHexStr string) (*types.TxResponse, error)
no 0x prefix
func (*Client) SendContractExecuteMsg ¶
func (*Client) SetAccountPrefix ¶
func (*Client) SetFromName ¶
SetFromName update clientCtx.FromName and clientCtx.FromAddress
func (*Client) SetGasPrice ¶
func (*Client) SingleTransferTo ¶
type EncodingConfig ¶
type EncodingConfig struct { InterfaceRegistry types.InterfaceRegistry Marshaler codec.Codec TxConfig client.TxConfig Amino *codec.LegacyAmino }
EncodingConfig specifies the concrete encoding types to use for a given app. This is provided for compatibility between protobuf and amino implementations.
func MakeEncodingConfig ¶
func MakeEncodingConfig() EncodingConfig
TODO: clean codec MakeEncodingConfig creates an EncodingConfig for testing
Click to show internal directories.
Click to hide internal directories.