Useful CLI Commands
Get standard debug info from the juno daemon:
junod statusCheck if your node is catching up:
# Query via the RPC (default port: 26657)
curl http://localhost:26657/status | jq .result.sync_info.catching_upGet your node ID:
junod tendermint show-node-idCheck if you are jailed or tombstoned:
junod query slashing signing-info $(junod tendermint show-validator)Set the default chain for commands to use:
junod config chain-id juno-1Get your valoper address:
junod keys show <your-key-name> -a --bech valSee keys on the current box:
junod keys listImport a key from a mnemonic:
junod keys add <new-key-name> --recoverExport a private key (warning: don't do this unless you know what you're doing!)
Withdraw rewards (including validator commission), where junovaloper1... is the validator address:
Stake:
Find out what the JSON for a command would be using --generate-only:
Query the results of a gov vote that has ended, from a remote RPC (NB - you have to specify a height before the vote ended):
Transfer JUNO to another chain (osmosis) with IBC
Query the validator set (and jailed status) via CLI:
Get contract state:
Last updated
Was this helpful?
