Useful commands
Service operations ⚙️
Check logs
sudo journalctl -u pellcored -fo cat
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
Reload services
sudo systemctl daemon-reload
Enable Service
sudo systemctl enable pellcored
Disable Service
sudo systemctl disable pellcored
Node info
pellcored status 2>&1 | jq
Your node peer
echo $(pellcored tendermint show-node-id)'@'$(wget -qO- eth0.me)':'$(cat $HOME/.pellcored/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')
Key management
Add New Wallet
pellcored keys add $WALLET
Restore executing wallet
pellcored keys add $WALLET --recover
List All Wallets
pellcored keys list
Delete wallet
pellcored keys delete $WALLET
Check Balance
pellcored q bank balances $WALLET_ADDRESS
Export Key (save to wallet.backup)
pellcored keys export $WALLET
View EVM Prived Key
pellcored keys unsafe-export-eth-key $WALLET
Import Key (restore from wallet.backup)
pellcored keys import $WALLET wallet.backup
Tokens
Withdraw all rewards
pellcored tx distribution withdraw-all-rewards --from $WALLET --chain-id ignite_186-1 --gas auto --gas-adjustment 1.5
Withdraw rewards and commission from your validator
pellcored tx distribution withdraw-rewards $VALOPER_ADDRESS --from $WALLET --commission --chain-id ignite_186-1 --gas auto --gas-adjustment 1.5 -y
Check your balance
pellcored query bank balances $WALLET_ADDRESS
Delegate to Yourself
pellcored tx staking delegate $(pellcored keys show $WALLET --bech val -a) 1000000apell --from $WALLET --chain-id ignite_186-1 --gas auto --gas-adjustment 1.5 -y
Delegate
pellcored tx staking delegate <TO_VALOPER_ADDRESS> 1000000apell --from $WALLET --chain-id ignite_186-1 --gas auto --gas-adjustment 1.5 -y
Redelegate Stake to Another Validator
pellcored tx staking redelegate $VALOPER_ADDRESS <TO_VALOPER_ADDRESS> 1000000apell --from $WALLET --chain-id ignite_186-1 --gas auto --gas-adjustment 1.5 -y
Unbond
pellcored tx staking unbond $(pellcored keys show $WALLET --bech val -a) 1000000apell --from $WALLET --chain-id ignite_186-1 --gas auto --gas-adjustment 1.5 -y
Transfer Funds
pellcored tx bank send $WALLET_ADDRESS <TO_WALLET_ADDRESS> 1000000apell --gas auto --gas-adjustment 1.5 -y
Validator operations
Create New Validator
pellcored tx staking create-validator \
--amount 1000000apell \
--from $WALLET \
--commission-rate 0.1 \
--commission-max-rate 0.2 \
--commission-max-change-rate 0.01 \
--min-self-delegation 1 \
--pubkey $(pellcored tendermint show-validator) \
--moniker "$MONIKER" \
--identity "" \
--details "xxxxxxxx" \
--chain-id ignite_186-1 \
--gas auto --gas-adjustment 1.5 \
-y
Edit Existing Validator
pellcored tx staking edit-validator \
--commission-rate 0.1 \
--new-moniker "$MONIKER" \
--identity "" \
--details "xxxxxxxx" \
--from $WALLET \
--chain-id ignite_186-1 \
--gas auto --gas-adjustment 1.5 \
-y
Validator info
pellcored status 2>&1 | jq
Validator Details
pellcored q staking validator $(pellcored keys show $WALLET --bech val -a)
Jailing info
pellcored q slashing signing-info $(pellcored tendermint show-validator)
Slashing parameters
pellcored q slashing params
Unjail validator
pellcored tx slashing unjail --from $WALLET --chain-id ignite_186-1 --gas auto --gas-adjustment 1.5 -y
Active Validators List
pellcored q staking validators -oj --limit=2000 | jq '.validators[] | select(.status=="BOND_STATUS_BONDED")' | jq -r '(.tokens|tonumber/pow(10; 6)|floor|tostring) + " " + .description.moniker' | sort -gr | nl
Check Validator key
[[ $(pellcored q staking validator $VALOPER_ADDRESS -oj | jq -r .consensus_pubkey.key) = $(pellcored status | jq -r .ValidatorInfo.PubKey.value) ]] && echo -e "Your key status is ok" || echo -e "Your key status is error"
Signing info
pellcored q slashing signing-info $(pellcored tendermint show-validator)
Governance
Create New Text Proposal
pellcored tx gov submit-proposal \
--title "" \
--description "" \
--deposit 1000000apell \
--type Text \
--from $WALLET \
--gas auto --gas-adjustment 1.5 \
-y
Proposals List
pellcored query gov proposals
View proposal
pellcored query gov proposal 1
Vote
pellcored tx gov vote 1 yes --from $WALLET --chain-id ignite_186-1 --gas auto --gas-adjustment 1.5 -y
Last updated