Documentation ¶
Index ¶
- func BlockCommand() *cobra.Command
- func BlockRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
- func CLIVersionRequestHandler(w http.ResponseWriter, r *http.Request)
- func GetChainHeight(cliCtx context.CLIContext) (int64, error)
- func LatestBlockRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
- func LatestValidatorSetRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
- func NodeInfoRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
- func NodeSyncingRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
- func NodeVersionRequestHandler(cliCtx context.CLIContext) http.HandlerFunc
- func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router)
- func StatusCommand() *cobra.Command
- func ValidatorCommand(cdc *codec.Codec) *cobra.Command
- func ValidatorSetRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
- type ResultValidatorsOutput
- type ValidatorOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlockCommand ¶ added in v0.2.1
BlockCommand returns the verified block data for a given heights
func BlockRequestHandlerFn ¶ added in v0.2.1
func BlockRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
REST handler to get a block
func CLIVersionRequestHandler ¶ added in v0.30.0
func CLIVersionRequestHandler(w http.ResponseWriter, r *http.Request)
cli version REST handler endpoint
func GetChainHeight ¶
func GetChainHeight(cliCtx context.CLIContext) (int64, error)
get the current blockchain height
func LatestBlockRequestHandlerFn ¶ added in v0.2.1
func LatestBlockRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
REST handler to get the latest block
func LatestValidatorSetRequestHandlerFn ¶ added in v0.2.1
func LatestValidatorSetRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
Latest Validator Set REST handler
func NodeInfoRequestHandlerFn ¶ added in v0.2.1
func NodeInfoRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
REST handler for node info
func NodeSyncingRequestHandlerFn ¶ added in v0.2.1
func NodeSyncingRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
REST handler for node syncing
func NodeVersionRequestHandler ¶ added in v0.30.0
func NodeVersionRequestHandler(cliCtx context.CLIContext) http.HandlerFunc
connected node version REST handler endpoint
func RegisterRoutes ¶
func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router)
Register REST endpoints
func StatusCommand ¶ added in v0.2.1
StatusCommand returns the status of the network
func ValidatorCommand ¶ added in v0.2.1
ValidatorCommand returns the validator set for a given height
func ValidatorSetRequestHandlerFn ¶ added in v0.2.1
func ValidatorSetRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
Validator Set at a height REST handler
Types ¶
type ResultValidatorsOutput ¶ added in v0.2.1
type ResultValidatorsOutput struct { BlockHeight int64 `json:"block_height"` Validators []ValidatorOutput `json:"validators"` }
Validators at a certain height output in bech32 format
func (ResultValidatorsOutput) String ¶ added in v0.2.1
func (rvo ResultValidatorsOutput) String() string
type ValidatorOutput ¶ added in v0.2.1
type ValidatorOutput struct { Address sdk.ConsAddress `json:"address"` PubKey string `json:"pub_key"` ProposerPriority int64 `json:"proposer_priority"` VotingPower int64 `json:"voting_power"` }
Validator output in bech32 format
Click to show internal directories.
Click to hide internal directories.