rest

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2019 License: BSD-2-Clause Imports: 11 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, cdc *codec.Codec, kb keys.Keybase)

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

func SendRequestHandlerFn

func SendRequestHandlerFn(cdc *codec.Codec, _ keys.Keybase, cliCtx context.CLIContext) http.HandlerFunc

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

func SendTxRequestHandlerFn

func SendTxRequestHandlerFn(cdc *codec.Codec, kb keys.Keybase, cliCtx context.CLIContext) http.HandlerFunc

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

Types

type MmeoReq

type MmeoReq struct {
	BaseReq  rest.BaseReq `json:"base_req"`
	Required bool         `json:"memo_required"`
}

type SendReq

type SendReq struct {
	BaseReq    rest.BaseReq `json:"base_req"`
	Amount     sdk.Coins    `json:"amount"`
	UnlockTime int64        `json:"unlock_time"`
}

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