Documentation ¶
Index ¶
- func BroadcastTxRequestHandlerFn(cdc *codec.Codec, cliCtx context.CLIContext) http.HandlerFunc
- func EncodeTxRequestHandlerFn(cdc *codec.Codec, cliCtx context.CLIContext) http.HandlerFunc
- func QueryAccountRequestHandlerFn(storeName string, cdc *codec.Codec, decoder auth.AccountDecoder, ...) http.HandlerFunc
- func QueryBalancesRequestHandlerFn(storeName string, cdc *codec.Codec, decoder auth.AccountDecoder, ...) http.HandlerFunc
- func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router, cdc *codec.Codec, storeName string)
- func SignTxRequestHandlerFn(cdc *codec.Codec, cliCtx context.CLIContext) http.HandlerFunc
- type SignBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BroadcastTxRequestHandlerFn ¶ added in v0.31.0
func BroadcastTxRequestHandlerFn(cdc *codec.Codec, cliCtx context.CLIContext) http.HandlerFunc
BroadcastTxRequestHandlerFn returns the broadcast tx REST handler
func EncodeTxRequestHandlerFn ¶
func EncodeTxRequestHandlerFn(cdc *codec.Codec, cliCtx context.CLIContext) http.HandlerFunc
EncodeTxRequestHandlerFn returns the encode tx REST handler. In particular, it takes a json-formatted transaction, encodes it to the Amino wire protocol, and responds with base64-encoded bytes
func QueryAccountRequestHandlerFn ¶
func QueryAccountRequestHandlerFn( storeName string, cdc *codec.Codec, decoder auth.AccountDecoder, cliCtx context.CLIContext, ) http.HandlerFunc
query accountREST Handler
func QueryBalancesRequestHandlerFn ¶ added in v0.25.0
func QueryBalancesRequestHandlerFn( storeName string, cdc *codec.Codec, decoder auth.AccountDecoder, cliCtx context.CLIContext, ) http.HandlerFunc
query accountREST Handler
func RegisterRoutes ¶
register REST routes
func SignTxRequestHandlerFn ¶ added in v0.25.0
func SignTxRequestHandlerFn(cdc *codec.Codec, cliCtx context.CLIContext) http.HandlerFunc
nolint: unparam sign tx REST handler
Types ¶
Click to show internal directories.
Click to hide internal directories.