Useful CLI Commands
Get standard debug info from the mint daemon:
mintstationd 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:
mintstationd tendermint show-node-idCheck if you are jailed or tombstoned:
mintstationd query slashing signing-info $(mintstationd tendermint show-validator)Set the default chain for commands to use:
mintstationd config chain-id mintstation-1Get your valoper address:
mintstationd keys show <your-key-name> -a --bech valSee keys on the current box:
mintstationd keys listImport a key from a mnemonic:
mintstationd keys add <new-key-name> --recoverExport a private key (warning: don't do this unless you know what you're doing!)
mintstationd keys export <your-key-name> --unsafe --unarmored-hexWithdraw rewards (including validator commission), where mintvaloper1... is the validator address:
mintstationd tx distribution withdraw-rewards <mintvaloper1...> --from <your-key> --commissionStake:
mintstationd tx staking delegate <mintvaloper1...> <AMOUNT>umint --from <your-key>Find out what the JSON for a command would be using --generate-only:
mintstationd tx bank send $(mintstationd keys show <your-key-name> -a) <recipient addr> <AMOUNT>umint --generate-onlyQuery the results of a gov vote that has ended, from a remote RPC (NB - you have to specify a height before the vote ended):
mintstationd q gov votes 1 --height <height-before-vote-ended> --node https://rpc-archive.mintnetwork.io:443Transfer mint to another chain (osmosis) with IBC
mintstationd tx ibc-transfer transfer transfer channel-0 <osmo1...> 1000000umint --from <mint1...> --node https://rpc-archive.mintnetwork.io:443 --packet-timeout-height 0-0Query the validator set (and jailed status) via CLI:
mintstationd query staking validators --limit 1000 -o json | jq -r '.validators[] | [.operator_address, (.tokens|tonumber / pow(10; 6)), .description.moniker, .jail, .status] | @csv' | column -t -s"," | sort -k2 -n -r | nlGet contract state:
mintstationd q wasm contract-state all <contract-address>