rpc

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCommands

func AddCommands(cmd *cobra.Command)

AddCommands adds a number of rpc-related subcommands

func BlockCommand added in v0.18.0

func BlockCommand() *cobra.Command

BlockCommand returns the verified block data for a given heights

func BlockRequestHandlerFn added in v0.16.0

func BlockRequestHandlerFn(ctx context.CoreContext) http.HandlerFunc

REST handler to get a block

func GetChainHeight

func GetChainHeight(ctx context.CoreContext) (int64, error)

get the current blockchain height

func LatestBlockRequestHandlerFn added in v0.16.0

func LatestBlockRequestHandlerFn(ctx context.CoreContext) http.HandlerFunc

REST handler to get the latest block

func LatestValidatorSetRequestHandlerFn added in v0.16.0

func LatestValidatorSetRequestHandlerFn(ctx context.CoreContext) http.HandlerFunc

Latest Validator Set REST handler

func NodeInfoRequestHandlerFn added in v0.16.0

func NodeInfoRequestHandlerFn(ctx context.CoreContext) http.HandlerFunc

REST handler for node info

func NodeSyncingRequestHandlerFn added in v0.16.0

func NodeSyncingRequestHandlerFn(ctx context.CoreContext) http.HandlerFunc

REST handler for node syncing

func RegisterRoutes

func RegisterRoutes(ctx context.CoreContext, r *mux.Router)

Register REST endpoints

func ValidatorCommand added in v0.18.0

func ValidatorCommand() *cobra.Command

ValidatorCommand returns the validator set for a given height

func ValidatorSetRequestHandlerFn added in v0.16.0

func ValidatorSetRequestHandlerFn(ctx context.CoreContext) http.HandlerFunc

Validator Set at a height REST handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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