Documentation ¶
Index ¶
- func BlockCommand() *cobra.Command
- func BlockRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
- func BlockResultsCommand() *cobra.Command
- func BlockResultsRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
- func GetChainHeight(cliCtx context.CLIContext) (int64, error)
- func LatestBlockRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
- func LatestBlockResultsRequestHandlerFn(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 RegisterRPCRoutes(cliCtx context.CLIContext, r *mux.Router)
- func StatusCommand() *cobra.Command
- func TxSimulateRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
- func ValidatorCommand(cdc *codec.Codec) *cobra.Command
- func ValidatorSetRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
- type NodeInfoResponse
- type ResultValidatorsOutput
- type SyncingResponse
- type ValidatorOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlockCommand ¶
BlockCommand returns the verified block data for a given heights
func BlockRequestHandlerFn ¶
func BlockRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
REST handler to get a block
func BlockResultsCommand ¶
BlockCommand returns the verified block data for a given heights
func BlockResultsRequestHandlerFn ¶
func BlockResultsRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
REST handler to get a block results
func GetChainHeight ¶
func GetChainHeight(cliCtx context.CLIContext) (int64, error)
get the current blockchain height
func LatestBlockRequestHandlerFn ¶
func LatestBlockRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
REST handler to get the latest block
func LatestBlockResultsRequestHandlerFn ¶
func LatestBlockResultsRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
REST handler to get the latest block
func LatestValidatorSetRequestHandlerFn ¶
func LatestValidatorSetRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
Latest Validator Set REST handler
func NodeInfoRequestHandlerFn ¶
func NodeInfoRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
REST handler for node info
func NodeSyncingRequestHandlerFn ¶
func NodeSyncingRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
REST handler for node syncing
func RegisterRPCRoutes ¶
func RegisterRPCRoutes(cliCtx context.CLIContext, r *mux.Router)
Register REST endpoints
func StatusCommand ¶
StatusCommand returns the command to return the status of the network.
func TxSimulateRequestHandlerFn ¶
func TxSimulateRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
func ValidatorCommand ¶
ValidatorCommand returns the validator set for a given height
func ValidatorSetRequestHandlerFn ¶
func ValidatorSetRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
Validator Set at a height REST handler
Types ¶
type NodeInfoResponse ¶
type NodeInfoResponse struct { p2p.DefaultNodeInfo `json:"node_info"` ApplicationVersion version.Info `json:"application_version"` }
NodeInfoResponse defines a response type that contains node status and version information.
type ResultValidatorsOutput ¶
type ResultValidatorsOutput struct { BlockHeight int64 `json:"block_height"` Validators []ValidatorOutput `json:"validators"` }
Validators at a certain height output in bech32 format
func GetValidators ¶
func GetValidators(cliCtx context.CLIContext, height *int64) (ResultValidatorsOutput, error)
GetValidators from client
func (ResultValidatorsOutput) String ¶
func (rvo ResultValidatorsOutput) String() string
type SyncingResponse ¶
type SyncingResponse struct {
Syncing bool `json:"syncing"`
}
SyncingResponse defines a response type that contains node syncing information.
type ValidatorOutput ¶
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