tx

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2018 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QueryTxCmd

func QueryTxCmd(cdc *wire.Codec) *cobra.Command

QueryTxCmd implements the default command for a tx query.

func QueryTxRequestHandlerFn

func QueryTxRequestHandlerFn(cdc *wire.Codec, cliCtx context.CLIContext) http.HandlerFunc

transaction query REST handler

func RegisterRoutes

func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router, cdc *wire.Codec)

register REST routes

func SearchTxCmd

func SearchTxCmd(cdc *wire.Codec) *cobra.Command

default client command to search through tagged transactions

func SearchTxRequestHandlerFn

func SearchTxRequestHandlerFn(cliCtx context.CLIContext, cdc *wire.Codec) http.HandlerFunc

Search Tx REST Handler

func SendTxRequestHandlerFn

func SendTxRequestHandlerFn(cliCtx context.CLIContext, cdc *wire.Codec) http.HandlerFunc

func ValidateTxResult

func ValidateTxResult(cliCtx context.CLIContext, res *ctypes.ResultTx) error

ValidateTxResult performs transaction verification

Types

type Info

type Info struct {
	Hash   common.HexBytes        `json:"hash"`
	Height int64                  `json:"height"`
	Tx     sdk.Tx                 `json:"tx"`
	Result abci.ResponseDeliverTx `json:"result"`
}

Info is used to prepare info to display

func FormatTxResults

func FormatTxResults(cdc *wire.Codec, res []*ctypes.ResultTx) ([]Info, error)

parse the indexed txs into an array of Info

Jump to

Keyboard shortcuts

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