tx

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2019 License: Apache-2.0 Imports: 21 Imported by: ? modules, 0 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 BroadcastTxRequest added in v0.7.0

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

BroadcastTxRequest REST Handler nolint: gocyclo

func QueryTxCmd

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

QueryTxCmd implements the default command for a tx query.

func QueryTxRequestHandlerFn

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

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

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

Search Tx REST Handler

func ValidateTxResult

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

ValidateTxResult performs transaction verification

Types

type BroadcastBody added in v0.7.0

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

BroadcastBody Tx Broadcast Body

type Info

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

Info is used to prepare info to display

func FormatTxResults

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

parse the indexed txs into an array of Info

type InfoCoinFlow added in v0.12.2

type InfoCoinFlow struct {
	Hash     common.HexBytes   `json:"hash"`
	Height   int64             `json:"height"`
	Tx       sdk.Tx            `json:"tx"`
	Result   ResponseDeliverTx `json:"result"`
	CoinFlow []string          `json:"coin_flow"`
}

Info is used to prepare info to display

type ResponseDeliverTx added in v0.10.0

type ResponseDeliverTx struct {
	Code                 uint32
	Data                 []byte
	Log                  string
	Info                 string
	GasWanted            int64
	GasUsed              int64
	Tags                 []tendermint.ReadableTag
	Codespace            string
	XXX_NoUnkeyedLiteral struct{}
	XXX_unrecognized     []byte
	XXX_sizecache        int32
}

func MakeResponseHumanReadable added in v0.12.2

func MakeResponseHumanReadable(dtx abci.ResponseDeliverTx) ResponseDeliverTx

Jump to

Keyboard shortcuts

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