Documentation ¶
Index ¶
- func BlockCommand(cdc *go_amino.Codec) []*cobra.Command
- func QueryCommand(cdc *go_amino.Codec) []*cobra.Command
- func QueryTx(cliCtx context.CLIContext, hashHexStr string) (btypes.TxResponse, error)
- func QueryTxsByEvents(cliCtx context.CLIContext, events []string, page, limit int) (*btypes.SearchTxsResult, error)
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func QueryTx ¶ added in v0.2.2
func QueryTx(cliCtx context.CLIContext, hashHexStr string) (btypes.TxResponse, error)
QueryTx queries for a single transaction by a hash string in hex format. An error is returned if the transaction does not exist or cannot be queried.
func QueryTxsByEvents ¶ added in v0.2.2
func QueryTxsByEvents(cliCtx context.CLIContext, events []string, page, limit int) (*btypes.SearchTxsResult, error)
QueryTxsByEvents performs a search for transactions for a given set of events via the Tendermint RPC. An event takes the form of: "{eventAttribute}.{attributeKey} = '{attributeValue}'". Each event is concatenated with an 'AND' operand. It returns a slice of Info object containing txs and metadata. An error is returned if the query fails.
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.