Documentation ¶
Index ¶
- func BroadcastTxRequest(cliCtx context.CLIContext) http.HandlerFunc
- func QueryAccountRequestHandlerFn(storeName string, cliCtx context.CLIContext) http.HandlerFunc
- func QueryTxRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
- func QueryTxsRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
- func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router, storeName string)
- func RegisterTxRoutes(cliCtx context.CLIContext, r *mux.Router)
- type BroadcastReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BroadcastTxRequest ¶
func BroadcastTxRequest(cliCtx context.CLIContext) http.HandlerFunc
BroadcastTxRequest implements a tx broadcasting handler that is responsible for broadcasting a valid and signed tx to a full node. The tx can be broadcasted via a sync|async|block mechanism.
func QueryAccountRequestHandlerFn ¶
func QueryAccountRequestHandlerFn(storeName string, cliCtx context.CLIContext) http.HandlerFunc
query accountREST Handler
func QueryTxRequestHandlerFn ¶
func QueryTxRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
QueryTxRequestHandlerFn implements a REST handler that queries a transaction by hash in a committed block.
func QueryTxsRequestHandlerFn ¶
func QueryTxsRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
QueryTxsHandlerFn implements a REST handler that searches for transactions. Genesis transactions are returned if the height parameter is set to zero, otherwise the transactions are searched for by events.
func RegisterRoutes ¶
func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router, storeName string)
RegisterRoutes registers the auth module REST routes.
func RegisterTxRoutes ¶
func RegisterTxRoutes(cliCtx context.CLIContext, r *mux.Router)
RegisterTxRoutes registers all transaction routes on the provided router.
Types ¶
type BroadcastReq ¶
type BroadcastReq struct { Tx types.StdTx `json:"tx" yaml:"tx"` Mode string `json:"mode" yaml:"mode"` }
BroadcastReq defines a tx broadcasting request.