Documentation ¶
Index ¶
- func AddCommands(cmd *cobra.Command, cdc *wire.Codec)
- func BroadcastTxRequestHandlerFn(ctx context.CoreContext) http.HandlerFunc
- func QueryTxCmd(cdc *wire.Codec) *cobra.Command
- func QueryTxRequestHandlerFn(cdc *wire.Codec, ctx context.CoreContext) http.HandlerFunc
- func RegisterRoutes(ctx context.CoreContext, r *mux.Router, cdc *wire.Codec)
- func SearchTxCmd(cdc *wire.Codec) *cobra.Command
- func SearchTxRequestHandlerFn(ctx context.CoreContext, cdc *wire.Codec) http.HandlerFunc
- func SignTxRequstHandler(w http.ResponseWriter, r *http.Request)
- type BroadcastTxBody
- type SignTxBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCommands ¶
AddCommands adds a number of tx-query related subcommands
func BroadcastTxRequestHandlerFn ¶
func BroadcastTxRequestHandlerFn(ctx context.CoreContext) http.HandlerFunc
BroadcastTx REST Handler
func QueryTxCmd ¶
Get the default command for a tx query
func QueryTxRequestHandlerFn ¶
func QueryTxRequestHandlerFn(cdc *wire.Codec, ctx context.CoreContext) http.HandlerFunc
transaction query REST handler
func RegisterRoutes ¶
register REST routes
func SearchTxCmd ¶
default client command to search through tagged transactions
func SearchTxRequestHandlerFn ¶
func SearchTxRequestHandlerFn(ctx context.CoreContext, cdc *wire.Codec) http.HandlerFunc
Search Tx REST Handler
func SignTxRequstHandler ¶
func SignTxRequstHandler(w http.ResponseWriter, r *http.Request)
sign transaction REST Handler
Types ¶
type SignTxBody ¶
type SignTxBody struct { Name string `json:"name"` Password string `json:"password"` TxBytes string `json:"tx"` }
REST request body TODO does this need to be exposed?
Click to show internal directories.
Click to hide internal directories.