rest

package
v0.44.2 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSendRequestHandlerFn

func NewSendRequestHandlerFn(clientCtx client.Context) http.HandlerFunc

NewSendRequestHandlerFn returns an HTTP REST handler for creating a MsgSend transaction.

func QueryBalancesRequestHandlerFn

func QueryBalancesRequestHandlerFn(clientCtx client.Context) http.HandlerFunc

QueryBalancesRequestHandlerFn returns a REST handler that queries for all account balances or a specific balance by denomination.

func RegisterHandlers

func RegisterHandlers(clientCtx client.Context, rtr *mux.Router)

RegisterHandlers registers all x/bank transaction and query HTTP REST handlers on the provided mux router.

Types

type SendReq

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

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