rest

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRoutes

func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router)

RegisterRoutes - Central function to define routes that get registered by the main application

func SendRequestHandlerFn

func SendRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc

SendRequestHandlerFn - http request handler to send coins to a address.

Types

type SendReq added in v0.3.0

type SendReq struct {
	BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"`
	Coins   sdk.Coins    `json:"coins" yaml:"coins"`
}

SendReq defines the properties of a send request's body.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL