Documentation ¶
Index ¶
- Constants
- func GetBlockByHash(clientCtx client.Context, hashHexString string) (*cmt.Block, error)
- func GetBlockByHeight(clientCtx client.Context, height *int64) (*cmt.Block, error)
- func GetChainHeight(clientCtx client.Context) (int64, error)
- func QueryBlocks(clientCtx client.Context, page, limit int, query, orderBy string) (*sdk.SearchBlocksResult, error)
- func QueryEventForTxCmd() *cobra.Command
- func ValidatorCommand() *cobra.Command
- func WaitTxCmd() *cobra.Command
Constants ¶
View Source
const TimeoutFlag = "timeout"
Variables ¶
This section is empty.
Functions ¶
func GetBlockByHash ¶ added in v0.50.9
func GetBlockByHeight ¶ added in v0.50.9
get block by height
func GetChainHeight ¶
GetChainHeight returns the current blockchain height.
func QueryBlocks ¶ added in v0.50.9
func QueryBlocks(clientCtx client.Context, page, limit int, query, orderBy string) (*sdk.SearchBlocksResult, error)
Examples: tm.event = 'NewBlock' # new blocks tm.event = 'CompleteProposal' # node got a complete proposal tm.event = 'Tx' AND tx.hash = 'XYZ' # single transaction tm.event = 'Tx' AND tx.height = 5 # all txs of the fifth block tx.height = 5 # all txs of the fifth block
For more information, see the /subscribe CometBFT RPC endpoint documentation
func QueryEventForTxCmd ¶ added in v0.50.9
QueryEventForTxCmd is an alias for WaitTxCmd, kept for backwards compatibility.
func ValidatorCommand ¶ added in v0.18.0
ValidatorCommand returns the validator set for a given height
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.