rpc

package
v0.15.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlockCommand

func BlockCommand() *cobra.Command

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 BlockResultCommand added in v0.12.2

func BlockResultCommand() *cobra.Command

BlockCommand returns the verified block data for a given heights

func BlockResultRequestHandlerFn added in v0.12.2

func BlockResultRequestHandlerFn(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 GetTxCoinFlow added in v0.12.2

func GetTxCoinFlow(cliCtx context.CLIContext, height *int64, hashStr string) ([]string, error)

func LatestBlockRequestHandlerFn

func LatestBlockRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc

REST handler to get the latest block

func LatestBlockResultRequestHandlerFn added in v0.12.2

func LatestBlockResultRequestHandlerFn(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 RegisterRoutes

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

register REST routes

func StatusCommand

func StatusCommand() *cobra.Command

func ValidatorCommand

func ValidatorCommand() *cobra.Command

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 ABCIResponses added in v0.12.2

type ABCIResponses struct {
	DeliverTx  []*ResponseDeliverTx `json:"deliver_tx"`
	EndBlock   *ResponseEndBlock    `json:"end_block"`
	BeginBlock *ResponseBeginBlock  `json:"begin_block"`
}

type ResponseBeginBlock added in v0.12.2

type ResponseBeginBlock struct {
	Tags []tendermint.ReadableTag `json:"tags"`
}

type ResponseDeliverTx added in v0.12.2

type ResponseDeliverTx struct {
	Code      uint32                   `json:"code"`
	Data      []byte                   `json:"data"`
	Log       string                   `json:"log"`
	Info      string                   `json:"info"`
	GasWanted int64                    `json:"gas_wanted"`
	GasUsed   int64                    `json:"gas_used"`
	Tags      []tendermint.ReadableTag `json:"tags"`
}

type ResponseEndBlock added in v0.12.2

type ResponseEndBlock struct {
	ValidatorUpdates      []abci.ValidatorUpdate   `json:"validator_updates"`
	ConsensusParamUpdates *abci.ConsensusParams    `json:"consensus_param_updates"`
	Tags                  []tendermint.ReadableTag `json:"tags"`
}

type ResultBlockResults added in v0.12.2

type ResultBlockResults struct {
	Height  int64         `json:"height"`
	Results ABCIResponses `json:"results"`
}

type ResultValidatorsOutput

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

Validators at a certain height output in bech32 format

type ValidatorOutput

type ValidatorOutput struct {
	Address          sdk.ConsAddress `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