Documentation ¶
Index ¶
- func QueryBlockWithTxsRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
- func QueryTxRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
- func QueryTxsRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
- func RegisterTxRoutes(cliCtx context.CLIContext, r *mux.Router)
- func SimulateTxRequest(cliCtx context.CLIContext) http.HandlerFunc
- func WriteABCIErrorResponse(w http.ResponseWriter, status int, cdc *codec.Codec, err *context.Error)
- type ABCIErrorResponse
- type SimulateReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func QueryBlockWithTxsRequestHandlerFn ¶
func QueryBlockWithTxsRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
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 RegisterTxRoutes ¶
func RegisterTxRoutes(cliCtx context.CLIContext, r *mux.Router)
RegisterTxRoutes registers all transaction routes on the provided router.
func SimulateTxRequest ¶
func SimulateTxRequest(cliCtx context.CLIContext) http.HandlerFunc
SimulateTxRequest implements a tx simulating handler that is responsible for simulating a valid and signed tx.
func WriteABCIErrorResponse ¶
func WriteABCIErrorResponse(w http.ResponseWriter, status int, cdc *codec.Codec, err *context.Error)
nolint: errcheck
Types ¶
type ABCIErrorResponse ¶
type SimulateReq ¶
type SimulateReq struct { Tx types.StdTx `json:"tx" yaml:"tx"` GasAdjustment string `json:"gas_adjustment"` }
SimulateReq defines a tx simulating request.
Click to show internal directories.
Click to hide internal directories.