Documentation ¶
Index ¶
- func NewResponseFormatBroadcastTxCommit(res *coretypes.ResultBroadcastTxCommit) *sdk.TxResponse
- type Client
- func (c *Client) BroadcastTxAsync(tx signing.Tx) (*sdk.TxResponse, error)
- func (c *Client) BroadcastTxCommit(tx signing.Tx) (*sdk.TxResponse, error)
- func (c *Client) BroadcastTxSync(tx signing.Tx) (*sdk.TxResponse, error)
- func (c *Client) GetAccount(address string) (authtypes.AccountI, error)
- func (c *Client) GetAccountPrefix() string
- func (c *Client) GetChainID() (string, error)
- func (c *Client) GetFeeDenom() string
- func (c *Client) GetFees(gas int64) sdk.Coins
- func (n *Client) ParseAddress(address string) (sdk.AccAddress, error)
- func (c *Client) SimulateTx(tx signing.Tx) (uint64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewResponseFormatBroadcastTxCommit ¶ added in v0.6.0
func NewResponseFormatBroadcastTxCommit(res *coretypes.ResultBroadcastTxCommit) *sdk.TxResponse
NewResponseFormatBroadcastTxCommit returns a TxResponse given a ResultBroadcastTxCommit from tendermint. Note: This is a backport from Cosmos SDK v0.45.x since it was removed inside Cosmos SDK v0.47.x
Types ¶
type Client ¶
type Client struct { Codec codec.Codec RPCClient rpcclient.Client GRPCConn *grpc.ClientConn AuthClient authtypes.QueryClient TxClient sdktx.ServiceClient GasPrice sdk.DecCoin GasAdjustment float64 // contains filtered or unexported fields }
Client represents a Cosmos client that should be used to interact with a chain
func (*Client) BroadcastTxAsync ¶
BroadcastTxAsync allows to broadcast a transaction containing the given messages using the sync method
func (*Client) BroadcastTxCommit ¶
BroadcastTxCommit allows to broadcast a transaction containing the given messages using the commit method
func (*Client) BroadcastTxSync ¶
BroadcastTxSync allows to broadcast a transaction containing the given messages using the sync method
func (*Client) GetAccount ¶
GetAccount returns the details of the account having the given address reading it from the chain
func (*Client) GetAccountPrefix ¶
GetAccountPrefix returns the account prefix to be used when serializing addresses as Bech32
func (*Client) GetChainID ¶
GetChainID returns the chain id associated to this client
func (*Client) GetFeeDenom ¶
GetFeeDenom returns the denom used to pay for fees, based on the gas price inside the config
func (*Client) GetFees ¶
GetFees returns the fees that should be paid to perform a transaction with the given gas
func (*Client) ParseAddress ¶
func (n *Client) ParseAddress(address string) (sdk.AccAddress, error)
ParseAddress parses the given address as an sdk.AccAddress instance