rest_v0_3

package
v0.13.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2021 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LatestBlockRequestHandlerFn

func LatestBlockRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc

REST handler to get the latest block

func QueryAccountRequestHandlerFn

func QueryAccountRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc

QueryAccountRequestHandlerFn handle auth/accounts queries This function is identical to v0.8 except the queried account is cast to the v0.3 account type so it marshals in the old format.

func QueryTxRequestHandlerFn

func QueryTxRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc

QueryTxRequestHandlerFn implements a REST handler that queries a transaction by hash in a committed block.

func RegisterRoutes

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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