rpc

package
v0.28.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2018 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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(cliCtx context.CLIContext) http.HandlerFunc

REST handler to get a block

func GetChainHeight

func GetChainHeight(cliCtx context.CLIContext) (int64, error)

get the current blockchain height

func InitClientCommand added in v0.27.0

func InitClientCommand() *cobra.Command

InitClientCommand initializes client commands

func LatestBlockRequestHandlerFn added in v0.16.0

func LatestBlockRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc

REST handler to get the latest block

func LatestValidatorSetRequestHandlerFn added in v0.16.0

func LatestValidatorSetRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc

Latest Validator Set REST handler

func NodeInfoRequestHandlerFn added in v0.16.0

func NodeInfoRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc

REST handler for node info

func NodeSyncingRequestHandlerFn added in v0.16.0

func NodeSyncingRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc

REST handler for node syncing

func RegisterRoutes

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

Register REST endpoints

func StatusCommand added in v0.27.0

func StatusCommand() *cobra.Command

StatusCommand returns the status of the network

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(cliCtx context.CLIContext) http.HandlerFunc

Validator Set at a height REST handler

Types

type ResultValidatorsOutput added in v0.19.0

type ResultValidatorsOutput struct {
	BlockHeight int64             `json:"block_height"`
	Validators  []ValidatorOutput `json:"validators"`
}

Validators at a certain height output in bech32 format

type ValidatorOutput added in v0.19.0

type ValidatorOutput struct {
	Address          sdk.ValAddress `json:"address"` // in bech32
	PubKey           string         `json:"pub_key"` // in bech32
	ProposerPriority int64          `json:"proposer_priority"`
	VotingPower      int64          `json:"voting_power"`
}

Validator output in bech32 format

Jump to

Keyboard shortcuts

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