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 LockedSendRequestHandlerFn

func LockedSendRequestHandlerFn(cliCtx client.Context) 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 client.Context, r *mux.Router)

RegisterRoutes registers custom REST routes.

Types

type LockedSendReq

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