Documentation
¶
Index ¶
- func BroadcastTxRequest(cliCtx context.CLIContext, cdc *codec.Codec) http.HandlerFunc
- func QueryTxCmd(cdc *codec.Codec) *cobra.Command
- func QueryTxRequestHandlerFn(cdc *codec.Codec, cliCtx context.CLIContext) http.HandlerFunc
- func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router, cdc *codec.Codec)
- func SearchTxCmd(cdc *codec.Codec) *cobra.Command
- func SearchTxRequestHandlerFn(cliCtx context.CLIContext, cdc *codec.Codec) http.HandlerFunc
- func ValidateTxResult(cliCtx context.CLIContext, res *ctypes.ResultTx) error
- type BroadcastBody
- type Info
- type InfoCoinFlow
- type ResponseDeliverTx
- type SearchTxsResult
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 ¶
QueryTxCmd implements the default command for a tx query.
func QueryTxRequestHandlerFn ¶
func QueryTxRequestHandlerFn(cdc *codec.Codec, cliCtx context.CLIContext) http.HandlerFunc
func RegisterRoutes ¶
register REST routes
func SearchTxCmd ¶
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
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"`
Timestamp string `json:"timestamp,omitempty"`
}
Info is used to prepare info to display
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"`
Timestamp string `json:"timestamp,omitempty"`
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
type SearchTxsResult ¶ added in v0.16.0
type SearchTxsResult struct {
TotalCount int `json:"total_count"` // Count of all txs
Count int `json:"count"` // Count of txs in current page
PageNumber int `json:"page_number"` // Index of current page, start from 1
PageTotal int `json:"page_total"` // Count of total pages
Size int `json:"size"` // Max count txs per page
Txs []Info `json:"txs"` // List of txs in current page
}
SearchTxsResult defines a structure for querying txs pageable
func NewSearchTxsResult ¶ added in v0.16.0
func NewSearchTxsResult(totalCount, count, page, size int, txs []Info) SearchTxsResult
func SearchTxs ¶ added in v0.14.5
func SearchTxs(cliCtx context.CLIContext, cdc *codec.Codec, tags []string, page, size int) (*SearchTxsResult, error)
Click to show internal directories.
Click to hide internal directories.