block

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2019 License: Apache-2.0 Imports: 18 Imported by: 3 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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