Documentation ¶
Index ¶
- func AddCommands(cmd *cobra.Command, cdc *wire.Codec)
- func BroadcastTxRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
- func QueryTxCmd(cdc *wire.Codec) *cobra.Command
- func QueryTxRequestHandlerFn(cdc *wire.Codec, cliCtx context.CLIContext) http.HandlerFunc
- func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router, cdc *wire.Codec)
- func SearchTxCmd(cdc *wire.Codec) *cobra.Command
- func SearchTxRequestHandlerFn(cliCtx context.CLIContext, cdc *wire.Codec) http.HandlerFunc
- func SignTxRequstHandler(w http.ResponseWriter, r *http.Request)
- type BroadcastTxBody
- type Info
- type SignTxBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCommands ¶ added in v0.2.0
AddCommands adds a number of tx-query related subcommands
func BroadcastTxRequestHandlerFn ¶ added in v0.16.0
func BroadcastTxRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
BroadcastTx REST Handler
func QueryTxCmd ¶ added in v0.2.0
QueryTxCmd implements the default command for a tx query.
func QueryTxRequestHandlerFn ¶ added in v0.16.0
func QueryTxRequestHandlerFn(cdc *wire.Codec, cliCtx context.CLIContext) http.HandlerFunc
transaction query REST handler
func RegisterRoutes ¶ added in v0.2.0
register REST routes
func SearchTxCmd ¶ added in v0.2.0
default client command to search through tagged transactions
func SearchTxRequestHandlerFn ¶ added in v0.16.0
func SearchTxRequestHandlerFn(cliCtx context.CLIContext, cdc *wire.Codec) http.HandlerFunc
Search Tx REST Handler
func SignTxRequstHandler ¶ added in v0.2.0
func SignTxRequstHandler(w http.ResponseWriter, r *http.Request)
sign transaction REST Handler
Types ¶
type BroadcastTxBody ¶ added in v0.2.0
type BroadcastTxBody struct {
TxBytes string `json:"tx"`
}
Tx Broadcast Body
type Info ¶ added in v0.24.0
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
type SignTxBody ¶ added in v0.2.0
type SignTxBody struct { Name string `json:"name"` Password string `json:"password"` TxBytes string `json:"tx"` }
REST request body for signed txs TODO does this need to be exposed?
Click to show internal directories.
Click to hide internal directories.