block

package
v0.2.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2019 License: Apache-2.0 Imports: 18 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlockCommand

func BlockCommand(cdc *go_amino.Codec) []*cobra.Command

func QueryCommand

func QueryCommand(cdc *go_amino.Codec) []*cobra.Command

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

type Result

type Result struct {
	Hash   string                 `json:"hash"`
	Height int64                  `json:"height"`
	Tx     btypes.Tx              `json:"tx"`
	Result abci.ResponseDeliverTx `json:"result"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL