Documentation ¶
Index ¶
- Constants
- func DecodeTxRequestHandlerFn(clientCtx client.Context) http.HandlerFunc
- func QueryAccountRequestHandlerFn(storeName string, clientCtx client.Context) http.HandlerFunc
- func QueryTxRequestHandlerFn(clientCtx client.Context) http.HandlerFunc
- func QueryTxsRequestHandlerFn(clientCtx client.Context) http.HandlerFunc
- func RegisterRoutes(clientCtx client.Context, rtr *mux.Router, storeName string)
- func RegisterTxRoutes(clientCtx client.Context, rtr *mux.Router)
- type DecodeReq
- type DecodeResp
Constants ¶
const (
MethodGet = "GET"
)
REST query and parameter values
Variables ¶
This section is empty.
Functions ¶
func DecodeTxRequestHandlerFn ¶ added in v0.45.10
func DecodeTxRequestHandlerFn(clientCtx client.Context) http.HandlerFunc
DecodeTxRequestHandlerFn returns the decode tx REST handler. In particular, it takes base64-decoded bytes, decodes it from the Amino wire protocol, and responds with a json-formatted transaction.
func QueryAccountRequestHandlerFn ¶
func QueryAccountRequestHandlerFn(storeName string, clientCtx client.Context) http.HandlerFunc
QueryAccountRequestHandlerFn is the query accountREST Handler.
func QueryTxRequestHandlerFn ¶ added in v0.45.10
func QueryTxRequestHandlerFn(clientCtx client.Context) http.HandlerFunc
QueryTxRequestHandlerFn implements a REST handler that queries a transaction by hash in a committed block.
func QueryTxsRequestHandlerFn ¶ added in v0.45.10
func QueryTxsRequestHandlerFn(clientCtx client.Context) http.HandlerFunc
QueryTxsRequestHandlerFn 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 ¶
RegisterRoutes registers the auth module REST routes.
Types ¶
type DecodeReq ¶ added in v0.45.10
type DecodeReq struct {
Tx string `json:"tx"`
}
DecodeReq defines a tx decoding request.
type DecodeResp ¶ added in v0.45.10
DecodeResp defines a tx decoding response.