var img = document.createElement('img'); img.src = "https://terradocs.matomo.cloud//piwik.php?idsite=1&rec=1&url=https://docs.terra.money" + location.pathname; img.style = "border:0"; img.alt = "tracker"; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(img,s);
Skip to main content

terrad query ibc client consensus-state

Query the consensus state for a particular light client at a given height. If the --latest flag is included, the query returns the latest consensus state, overriding the height argument.

Example

Terrad
Copy

_1
terrad query ibc client consensus-state [client-id] [height]

Usage

Terrad
Copy

_1
terrad query ibc client consensus-state [client-id] [height] [flags]

Options

Terrad
Copy

_6
--height int Use a specific height to query state at (this can error if the node is pruning state)
_6
-h, --help help for consensus-state
_6
--latest-height return latest stored consensus state
_6
--node string <host>:<port> to Tendermint RPC interface for this chain (default "tcp://localhost:26657")
_6
-o, --output string Output format (text|json) (default "text")
_6
--prove show proofs for the query results (default true)

Options inherited from parent commands

Terrad
Copy

_1
--chain-id string The network chain ID

See also