Chain ID: stratos-1
| Current Node Version: v0.12.0
This cheatsheet collects commonly used CLI commands for node operators to easily copy and paste. A few conventions we follow:
- Capitalized words indicate placeholders
- Always use our own [NODERS]TEAM RPC endpoints
- Always specify
--chain-id
and--node
flags even when they are unnecessary - Query CLI command always uses
--output json
flag and pipes result throughjq
Wallet generate and recover
Add new key
stchaind keys add KEY
Recover key (via existing mnemonic)
stchaind keys add KEY --recover
List all keys
stchaind keys list
Delete key
stchaind keys delete KEY
Wallet
Wallet balance
stchaind q bank balances $(stchaind keys show KEY -a) --node https://stratos-rpc.noders.services:443
Send
stchaind tx bank send YOUR_KEY RECEIVER_ADDRESS 1000000wei \
--chain-id stratos-1 \
--node https://stratos-rpc.noders.services:443 --fees 3000wei \
--from KEY
Withdraw rewards from all validators
stchaind tx distribution withdraw-all-rewards \
--chain-id stratos-1 \
--node https://stratos-rpc.noders.services:443 --fees 3000wei \
--from KEY
Withdraw Rewards including Commission
stchaind tx distribution withdraw-rewards VALIDATOR_ADRESS \
--commission \
--chain-id stratos-1 \
--node https://stratos-rpc.noders.services:443 --fees 3000wei \
--from KEY
Delegate tokens to yourself
stchaind tx staking delegate $(stchaind keys show KEY --bech val -a) 1000000wei \
--chain-id stratos-1 \
--node https://stratos-rpc.noders.services:443 --fees 3000wei \
--from KEY
Delegate tokens to validator
stchaind tx staking delegate VALIDATOR_ADDRESS 1000000wei \
--chain-id stratos-1 \
--node https://stratos-rpc.noders.services:443 --fees 3000wei \
--from KEY
Redelegate tokens to another validator
stchaind tx staking redelegate $(stchaind keys show KEY --bech val -a) VALIDATOR_ADDRESS 1000000wei \
--chain-id stratos-1 \
--node https://stratos-rpc.noders.services:443 --fees 3000wei \
--from KEY
Unbond tokens from your validator
stchaind tx staking unbond $(stchaind keys show KEY --bech val -a) wei \
--chain-id andromeda-1 \
--node https://stratos-rpc.noders.services:443 --fees 3000wei \
--from KEY
Governance
List of all proposals
stchaind query gov proposals --node https://stratos-rpc.noders.services:443
Check vote
stchaind query gov proposal PROPOSAL_NUMBER \
--chain-id stratos-1 \
--node https://stratos-rpc.noders.services:443 --fees 3000wei \
--output json | jq
Vote
Vote options:
- yes
- no
- no_with_veto
- abstain
stchaind tx gov vote PROPOSAL_NUMBER VOTE_OPTION \
--chain-id stratos-1 \
--node https://stratos-rpc.noders.services:443 --fees 3000wei \
--from KEY
Validator management
Create Validator
note
We use example filed values instead of capitalized dummy words for demo purpose in this command. Please make sure to adjust accordingly for your use.
stchaind tx staking create-validator \
--amount 1000000wei \
--commission-max-change-rate "0.05" \
--commission-max-rate "0.10" \
--commission-rate "0.05" \
--min-self-delegation "1" \
--pubkey=$(stchaind tendermint show-validator) \
--moniker '[NODERS]TEAM SERVICE' \
--website "https://noders.team" \
--identity "220491ADDD660741" \
--details "Trusted blockchain validator and web3 developer team" \
--security-contact="office@noders.team" \
--chain-id stratos-1 \
--node https://stratos-rpc.noders.services:443 --fees 3000wei \
--from KEY
Edit validator
stchaind tx staking edit-validator \
--new-moniker "YOUR_MONIKER_NAME" \
--identity "YOUR_KEYBASE_ID" \
--details "YOUR_DETAILS" \
--website "YOUR_WEBSITE_URL" \
--chain-id stratos-1 \
--commission-rate 0.05 \
--from KEY \
--node https://stratos-rpc.noders.services:443 --fees 3000wei \
Unjail
stchaind tx slashing unjail \
--chain-id stratos-1 \
--node https://stratos-rpc.noders.services:443 --fees 3000wei \
--from KEY
Jail reason
stchaind query slashing signing-info $(stchaind tendermint show-validator)
Validator details
stchaind q staking validator $(stchaind keys show KEY --bech val -a)