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 RegisterRoutes

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

RegisterRoutes registers custom REST routes.

func UnlockRequestHandlerFn

func UnlockRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc

UnlockRequestHandlerFn handles a request sent by an unlocker to unlock coins from a manual vesting account

Types

type UnlockReq

type UnlockReq struct {
	BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"`
	Amount  sdk.Coins    `json:"amount" yaml:"amount"`
}

UnlockReq defines the properties of a unlock request's body.

Jump to

Keyboard shortcuts

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