Documentation ¶
Index ¶
- func BroadcastTxRequestHandlerFn(cdc *codec.Codec, cliCtx context.CLIContext) http.HandlerFunc
- func BurnRequestHandlerFn(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 QueryCoinTypeRequestHandlerFn(cdc *codec.Codec, cliCtx context.CLIContext) http.HandlerFunc
- func QueryTokenStatsRequestHandlerFn(cdc *codec.Codec, cliCtx context.CLIContext, accStore, stakeStore string) http.HandlerFunc
- func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router, cdc *codec.Codec)
- func SendRequestHandlerFn(cdc *codec.Codec, cliCtx context.CLIContext) http.HandlerFunc
- func SendTxRequestHandlerFn(cliCtx context.CLIContext, cdc *codec.Codec) http.HandlerFunc
- 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.7.0
func BroadcastTxRequestHandlerFn(cdc *codec.Codec, cliCtx context.CLIContext) http.HandlerFunc
BroadcastTxRequestHandlerFn returns the broadcast tx REST handler
func BurnRequestHandlerFn ¶ added in v0.10.0
func BurnRequestHandlerFn(cdc *codec.Codec, cliCtx context.CLIContext) http.HandlerFunc
BurnRequestHandlerFn - http request handler to burn coins nolint: gocyclo
func QueryAccountRequestHandlerFn ¶
func QueryAccountRequestHandlerFn(storeName string, cdc *codec.Codec, decoder auth.AccountDecoder, cliCtx context.CLIContext, ) http.HandlerFunc
QueryAccountRequestHandlerFn performs account information query
func QueryBalancesRequestHandlerFn ¶ added in v0.7.0
func QueryBalancesRequestHandlerFn( storeName string, cdc *codec.Codec, decoder auth.AccountDecoder, cliCtx context.CLIContext, ) http.HandlerFunc
query accountREST Handler
func QueryCoinTypeRequestHandlerFn ¶
func QueryCoinTypeRequestHandlerFn(cdc *codec.Codec, cliCtx context.CLIContext, ) http.HandlerFunc
QueryCoinTypeRequestHandlerFn performs coin type query
func QueryTokenStatsRequestHandlerFn ¶ added in v0.10.0
func QueryTokenStatsRequestHandlerFn(cdc *codec.Codec, cliCtx context.CLIContext, accStore, stakeStore string, ) http.HandlerFunc
QueryTokenStatsRequestHandlerFn performs token statistic query
func RegisterRoutes ¶
RegisterRoutes - Central function to define routes that get registered by the main application
func SendRequestHandlerFn ¶
func SendRequestHandlerFn(cdc *codec.Codec, cliCtx context.CLIContext) http.HandlerFunc
SendRequestHandlerFn - http request handler to send coins to a address nolint: gocyclo
func SendTxRequestHandlerFn ¶ added in v0.7.0
func SendTxRequestHandlerFn(cliCtx context.CLIContext, cdc *codec.Codec) http.HandlerFunc
func SignTxRequestHandlerFn ¶ added in v0.7.0
func SignTxRequestHandlerFn(cdc *codec.Codec, cliCtx context.CLIContext) http.HandlerFunc
nolint: unparam SignTxRequestHandlerFn sign tx REST handler
Types ¶
type SignBody ¶ added in v0.7.0
type SignBody struct { Tx auth.StdTx `json:"tx"` Name string `json:"name"` Password string `json:"password"` ChainID string `json:"chain_id"` AccountNumber uint64 `json:"account_number"` Sequence uint64 `json:"sequence"` AppendSig bool `json:"append_sig"` }
SignBody defines the properties of a sign request's body.
Click to show internal directories.
Click to hide internal directories.