rest

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2022 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 client.Context, r *mux.Router)

RegisterRoutes registers custom REST routes.

func UnlockRequestHandlerFn

func UnlockRequestHandlerFn(cliCtx client.Context) 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