Useful commands
Service operations ⚙️
Check logs
sudo journalctl -u prysmd -fo catStart service
sudo systemctl start prysmdStop service
sudo systemctl stop prysmdRestart service
sudo systemctl restart prysmdCheck service status
sudo systemctl status prysmdReload services
sudo systemctl daemon-reloadEnable Service
sudo systemctl enable prysmdDisable Service
sudo systemctl disable prysmdNode info
prysmd status 2>&1 | jqYour node peer
echo $(prysmd tendermint show-node-id)'@'$(wget -qO- eth0.me)':'$(cat $HOME/.prysm/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')Key management
Add New Wallet
prysmd keys add $WALLETRestore executing wallet
prysmd keys add $WALLET --recoverList All Wallets
prysmd keys listDelete wallet
prysmd keys delete $WALLETCheck Balance
prysmd q bank balances $WALLET_ADDRESS Export Key (save to wallet.backup)
prysmd keys export $WALLETView EVM Prived Key
prysmd keys unsafe-export-eth-key $WALLETImport Key (restore from wallet.backup)
prysmd keys import $WALLET wallet.backupTokens
To valoper addressTo wallet addressAmount, uprysm
Withdraw all rewards
prysmd tx distribution withdraw-all-rewards --from $WALLET --chain-id prysm-devnet-1 --gas auto --gas-adjustment 1.5 Withdraw rewards and commission from your validator
prysmd tx distribution withdraw-rewards $VALOPER_ADDRESS --from $WALLET --commission --chain-id prysm-devnet-1 --gas auto --gas-adjustment 1.5 -y Check your balance
prysmd query bank balances $WALLET_ADDRESSDelegate to Yourself
prysmd tx staking delegate $(prysmd keys show $WALLET --bech val -a) 1000000uprysm --from $WALLET --chain-id prysm-devnet-1 --gas auto --gas-adjustment 1.5 -y Delegate
prysmd tx staking delegate <TO_VALOPER_ADDRESS> 1000000uprysm --from $WALLET --chain-id prysm-devnet-1 --gas auto --gas-adjustment 1.5 -y Redelegate Stake to Another Validator
prysmd tx staking redelegate $VALOPER_ADDRESS <TO_VALOPER_ADDRESS> 1000000uprysm --from $WALLET --chain-id prysm-devnet-1 --gas auto --gas-adjustment 1.5 -y Unbond
prysmd tx staking unbond $(prysmd keys show $WALLET --bech val -a) 1000000uprysm --from $WALLET --chain-id prysm-devnet-1 --gas auto --gas-adjustment 1.5 -y Transfer Funds
prysmd tx bank send $WALLET_ADDRESS <TO_WALLET_ADDRESS> 1000000uprysm --gas auto --gas-adjustment 1.5 -y Validator operations
MonikerIdentityDetailsAmount, uprysmCommission rateCommission max rateCommission max change rate
Create New Validator
prysmd tx staking create-validator \
--amount 1000000uprysm \
--from $WALLET \
--commission-rate 0.1 \
--commission-max-rate 0.2 \
--commission-max-change-rate 0.01 \
--min-self-delegation 1 \
--pubkey $(prysmd tendermint show-validator) \
--moniker "$MONIKER" \
--identity "" \
--details "I love blockchain ❤️" \
--chain-id prysm-devnet-1 \
--gas auto --gas-adjustment 1.5 \
-y Edit Existing Validator
prysmd tx staking edit-validator \
--commission-rate 0.1 \
--new-moniker "$MONIKER" \
--identity "" \
--details "I love blockchain ❤️" \
--from $WALLET \
--chain-id prysm-devnet-1 \
--gas auto --gas-adjustment 1.5 \
-y Validator info
prysmd status 2>&1 | jqValidator Details
prysmd q staking validator $(prysmd keys show $WALLET --bech val -a) Jailing info
prysmd q slashing signing-info $(prysmd tendermint show-validator) Slashing parameters
prysmd q slashing params Unjail validator
prysmd tx slashing unjail --from $WALLET --chain-id prysm-devnet-1 --gas auto --gas-adjustment 1.5 -y Active Validators List
prysmd 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
[[ $(prysmd q staking validator $VALOPER_ADDRESS -oj | jq -r .consensus_pubkey.key) = $(prysmd status | jq -r .ValidatorInfo.PubKey.value) ]] && echo -e "Your key status is ok" || echo -e "Your key status is error"Signing info
prysmd q slashing signing-info $(prysmd tendermint show-validator) Governance
TitleDescriptionDeposit, uprysm
Create New Text Proposal
prysmd tx gov submit-proposal \
--title "" \
--description "" \
--deposit 1000000uprysm \
--type Text \
--from $WALLET \
--gas auto --gas-adjustment 1.5 \
-y Proposals List
prysmd query gov proposals Proposal IDProposal optionYesNoNo with vetoAbstain
View proposal
prysmd query gov proposal 1 Vote
prysmd tx gov vote 1 yes --from $WALLET --chain-id prysm-devnet-1 --gas auto --gas-adjustment 1.5 -y Last updated