rest

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LockedSendRequestHandlerFn

func LockedSendRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc

LockedSendRequestHandlerFn is an http request handler to send coins to a manual vesting account and have them locked (vesting).

func RegisterRoutes

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

RegisterRoutes registers custom REST routes.

Types

type LockedSendReq added in v1.0.0

type LockedSendReq struct {
	BaseReq  rest.BaseReq `json:"base_req" yaml:"base_req"`
	Amount   sdk.Coins    `json:"amount" yaml:"amount"`
	Unlocker string       `json:"unlocker" yaml:"unlocker"`
}

LockedSendReq 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