Chain ID: ignite_186-1
| Current Node Version: 1.1.1-ignite
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
pellcored keys add KEY
Recover key (via existing mnemonic)
pellcored keys add KEY --recover
List all keys
pellcored keys list
Delete key
pellcored keys delete KEY
Wallet
Wallet balance
pellcored q bank balances $(pellcored keys show KEY -a) --node https://pell-t-rpc.noders.services:443
Send
pellcored tx bank send YOUR_KEY RECEIVER_ADDRESS 1000000apell \
--chain-id ignite_186-1 \
--node https://pell-t-rpc.noders.services:443 --fees 500000000apell \
--from KEY
Withdraw rewards from all validators
pellcored tx distribution withdraw-all-rewards \
--chain-id ignite_186-1 \
--node https://pell-t-rpc.noders.services:443 --fees 500000000apell \
--from KEY
Withdraw Rewards including Commission
pellcored tx distribution withdraw-rewards VALIDATOR_ADRESS \
--commission \
--chain-id ignite_186-1 \
--node https://pell-t-rpc.noders.services:443 --fees 500000000apell \
--from KEY
Delegate tokens to yourself
pellcored tx staking delegate $(pellcored keys show KEY --bech val -a) 1000000apell \
--chain-id ignite_186-1 \
--node https://pell-t-rpc.noders.services:443 --fees 500000000apell \
--from KEY
Delegate tokens to validator
pellcored tx staking delegate VALIDATOR_ADDRESS 1000000apell \
--chain-id ignite_186-1 \
--node https://pell-t-rpc.noders.services:443 --fees 500000000apell \
--from KEY
Redelegate tokens to another validator
pellcored tx staking redelegate $(pellcored keys show KEY --bech val -a) VALIDATOR_ADDRESS 1000000apell \
--chain-id ignite_186-1 \
--node https://pell-t-rpc.noders.services:443 --fees 500000000apell \
--from KEY
Unbond tokens from your validator
pellcored tx staking unbond $(pellcored keys show KEY --bech val -a) apell \
--chain-id andromeda-1 \
--node https://pell-t-rpc.noders.services:443 --fees 500000000apell \
--from KEY
Governance
List of all proposals
pellcored query gov proposals --node https://pell-t-rpc.noders.services:443
Check vote
pellcored query gov proposal PROPOSAL_NUMBER \
--chain-id ignite_186-1 \
--node https://pell-t-rpc.noders.services:443 --fees 500000000apell \
--output json | jq
Vote
Vote options:
- yes
- no
- no_with_veto
- abstain
pellcored tx gov vote PROPOSAL_NUMBER VOTE_OPTION \
--chain-id ignite_186-1 \
--node https://pell-t-rpc.noders.services:443 --fees 500000000apell \
--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.
pellcored tx staking create-validator \
--amount 1000000apell \
--commission-max-change-rate "0.05" \
--commission-max-rate "0.10" \
--commission-rate "0.05" \
--min-self-delegation "1" \
--pubkey=$(pellcored 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 ignite_186-1 \
--node https://pell-t-rpc.noders.services:443 --fees 500000000apell \
--from KEY
Edit validator
pellcored tx staking edit-validator \
--new-moniker "YOUR_MONIKER_NAME" \
--identity "YOUR_KEYBASE_ID" \
--details "YOUR_DETAILS" \
--website "YOUR_WEBSITE_URL" \
--chain-id ignite_186-1 \
--commission-rate 0.05 \
--from KEY \
--node https://pell-t-rpc.noders.services:443 --fees 500000000apell \
Unjail
pellcored tx slashing unjail \
--chain-id ignite_186-1 \
--node https://pell-t-rpc.noders.services:443 --fees 500000000apell \
--from KEY
Jail reason
pellcored query slashing signing-info $(pellcored tendermint show-validator)
Validator details
pellcored q staking validator $(pellcored keys show KEY --bech val -a)
Maintenance
Get validator info
pellcored status 2>&1 | jq .ValidatorInfo
Get sync info
pellcored status 2>&1 | jq .SyncInfo
Get node peer
echo $(pellcored tendermint show-node-id)'@'$(curl -s ifconfig.me)':'$(cat ~/.pellcored/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')
Check if validator key is correct
[[ $(pellcored q staking validator $(pellcored keys show KEY --bech val -a) -oj | jq -r .consensus_pubkey.key) = $(pellcored status | jq -r .ValidatorInfo.PubKey.value) ]] && echo -e "\n\e[1m\e[32mTrue\e[0m\n" || echo -e "\n\e[1m\e[31mFalse\e[0m\n"
Get live peers
curl -sS https://pell-t-rpc.noders.services:443/net_info | jq -r '.result.peers[] | "\(.node_info.id)@\(.remote_ip):\(.node_info.listen_addr)"' | awk -F ':' '{print $1":"$(NF)}'
Set minimum gas price
sed -i -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0.001apell\"/" ~/.pellcored/config/app.toml
###Enable prometheus
sed -i -e "s/prometheus = false/prometheus = true/" ~/.pellcored/config/config.toml
Reset chain data
pellcored tendermint unsafe-reset-all --keep-addr-book --home ~/.pellcored
Service Management
Reload service configuration
sudo systemctl daemon-reload
Enable service
sudo systemctl enable pellcored
Disable service
sudo systemctl disable pellcored
Start service
sudo systemctl start pellcored
Stop service
sudo systemctl stop pellcored
Restart service
sudo systemctl restart pellcored
Check service status
sudo systemctl status pellcored
Check service logs
sudo journalctl -u pellcored -f --no-hostname -o cat
Remove node
cd $HOME
sudo systemctl stop pellcored
sudo systemctl disable pellcored
sudo rm /etc/systemd/system/pell.service
sudo systemctl daemon-reload
rm -f $(which pellcored)
rm -rf ~/.pellcored
rm -rf $HOME/0xPellNetwork