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 keys show

Retrieve key information by name or address.

Synopsis

Display details of keys. Terra addresses are prefixed by terra-. For example, terra15h6vd5f0wqps26zjlwrc6chah08ryu4hzzdwhc.

If multiple names or addresses are provided, then an ephemeral multisig key will be created under the name "multi" consisting of all the keys provided by name and multisig threshold.

Usage

Terrad
Copy

_1
terrad keys show [name_or_address [name_or_address...]] [flags]

Examples


_1
terrad keys show myAccount

To show a validator's address, append the --bech=val flag to the end of the command statement, as shown in the following example:


_1
terrad keys show accountExample --bech=val

To show the validator consensus address that is generated when the node is created by terrad init and the Tendermint signing key for the node, use the tendermint command, as shown in the following example:


_1
terrad tendermint show-address

Options

Terrad
Copy

_6
-a, --address Output the address only (overrides --output)
_6
--bech string The Bech32 prefix encoding for a key (acc|val|cons) (default "acc")
_6
-d, --device Output the address in a ledger device
_6
-h, --help help for show
_6
--multisig-threshold int K out of N required signatures (default 1)
_6
-p, --pubkey Output the public key only (overrides --output)

Options inherited from parent commands

Terrad
Copy

_4
--home string The application home directory (default "terra")
_4
--keyring-backend string Select keyring's backend (os|file|test) (default "os")
_4
--keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used
_4
--output string Output format (text|json) (default "text")

See also