tx

package
v0.32.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2019 License: Apache-2.0 Imports: 19 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BroadcastTxRequest added in v0.25.0

func BroadcastTxRequest(cliCtx context.CLIContext, cdc *codec.Codec) http.HandlerFunc

BroadcastTxRequest REST Handler nolint: gocyclo

func FormatTxResults added in v0.24.0

func FormatTxResults(cdc *codec.Codec, res []*ctypes.ResultTx) ([]sdk.TxResponse, error)

parse the indexed txs into an array of Info

func QueryTxCmd

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

QueryTxCmd implements the default command for a tx query.

func QueryTxRequestHandlerFn added in v0.16.0

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

QueryTxRequestHandlerFn transaction query REST handler

func RegisterRoutes

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

register REST routes

func SearchTxCmd

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

default client command to search through tagged transactions

func SearchTxRequestHandlerFn added in v0.16.0

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

Search Tx REST Handler

func SearchTxs added in v0.28.1

func SearchTxs(cliCtx context.CLIContext, cdc *codec.Codec, tags []string, page, limit int) ([]sdk.TxResponse, error)

SearchTxs performs a search for transactions for a given set of tags via Tendermint RPC. It returns a slice of Info object containing txs and metadata. An error is returned if the query fails.

func ValidateTxResult added in v0.25.0

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

ValidateTxResult performs transaction verification

Types

type BroadcastBody added in v0.25.0

type BroadcastBody struct {
	TxBytes []byte `json:"tx"`
	Return  string `json:"return"`
}

BroadcastBody Tx Broadcast Body

Jump to

Keyboard shortcuts

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