Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlockCommand ¶
BlockCommand returns the verified block data for a given heights
func GetChainHeight ¶
get the current blockchain height
func QueryEventForTxCmd ¶ added in v0.47.5
QueryEventForTxCmd returns a CLI command that subscribes to a WebSocket connection and waits for a transaction event with the given hash.
func StatusCommand ¶
StatusCommand returns the command to return the status of the network.
func ValidatorCommand ¶
ValidatorCommand returns the validator set for a given height
Types ¶
type ResultValidatorsOutput ¶
type ResultValidatorsOutput struct { BlockHeight int64 `json:"block_height"` Validators []ValidatorOutput `json:"validators"` Total uint64 `json:"total"` }
Validators at a certain height output in bech32 format
func GetValidators ¶
func GetValidators(ctx context.Context, clientCtx client.Context, height *int64, page, limit *int) (ResultValidatorsOutput, error)
GetValidators from client
func (ResultValidatorsOutput) String ¶
func (rvo ResultValidatorsOutput) String() string
type ValidatorOutput ¶
type ValidatorOutput struct { Address sdk.ConsAddress `json:"address"` PubKey cryptotypes.PubKey `json:"pub_key"` ProposerPriority int64 `json:"proposer_priority"` VotingPower int64 `json:"voting_power"` }
Validator output
Click to show internal directories.
Click to hide internal directories.