rest

package
v1.6.63 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MultiMsgsRequest

func MultiMsgsRequest(cliCtx context.Context, w http.ResponseWriter, r *http.Request)

func NewAccountRequestHandlerFn

func NewAccountRequestHandlerFn(cliCtx context.Context) http.HandlerFunc

func QueryBalancesRequestHandlerFn

func QueryBalancesRequestHandlerFn(cliCtx context.Context) http.HandlerFunc

func QueryNonceRequestHandleFn

func QueryNonceRequestHandleFn(cliCtx context.Context) http.HandlerFunc

func RegisterRoutes

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

RegisterRoutes - Central function to define routes that get registered by the main application

Types

type Account

type Account struct {
	Address string `json:"address"`
	PrivKey string `json:"privKey"`
}

type AccountAddress

type AccountAddress struct {
	Address string `json:"address"`
	Height  string `json:"height"`
}

type BalanceData

type BalanceData struct {
	BalanceList interface{} `json:"balance_list"`
}

type Key

type Key struct {
	ValidatorKey string `json:"validator_key"`
}

type NonceData

type NonceData struct {
	Nonce uint64 `json:"nonce"`
}

Jump to

Keyboard shortcuts

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