rest

package
v0.45.11 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSendRequestHandlerFn added in v0.45.10

func NewSendRequestHandlerFn(clientCtx client.Context) http.HandlerFunc

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

func QueryBalancesRequestHandlerFn added in v0.45.10

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 added in v0.45.10

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 added in v0.32.0

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