Service operations ⚙️
Check logs
sudo journalctl -u prysmd -fo cat
Check service status
sudo systemctl status prysmd
Start service
sudo systemctl start story
Reload service
sudo systemctl daemon-reload
Stop service
sudo systemctl stop prysmd
Enable Service
sudo systemctl enable prysmd
Restart service
sudo systemctl restart prysmd
Disable Service
sudo systemctl disable prysmd
Node info
prysmd status 2>&1 | jq
Your 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 $WALLET
Restore executing wallet
prysmd keys add $WALLET --recover
List All Wallets
prysmd keys list
Delete wallet
prysmd keys delete $WALLET
Check Balance
prysmd q bank balances $WALLET_ADDRESS
Export Key (save to wallet.backup)
prysmd keys export $WALLET
View EVM Prived Key
prysmd keys unsafe-export-eth-key $WALLET
Import Key (restore from wallet.backup)
prysmd keys import $WALLET wallet.backup
Withdraw all rewards
prysmd tx distribution withdraw-all-rewards --from $WALLET --chain-id prysm-devnet-1 --gas auto --gas-adjustment 1.5 --fees 6000uprysm
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 --fees 6000uprysm -y
Check your balance
prysmd query bank balances $WALLET_ADDRESS
Delegate 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 --fees 6000uprysm -y
Delegate
prysmd tx staking delegate <TO_VALOPER_ADDRESS> 1000000uprysm --from $WALLET --chain-id prysm-devnet-1 --gas auto --gas-adjustment 1.5 --fees 6000uprysm -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 --fees 6000uprysm -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 --fees 6000uprysm -y
Transfer Funds
prysmd tx bank send $WALLET_ADDRESS <TO_WALLET_ADDRESS> 1000000uprysm --gas auto --gas-adjustment 1.5 --fees 6000uprysm -y
Validator Operations
Please fill in the name "Moniker Name", "Identity", "Details".
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 "" \
--identity "" \
--details "I love blockchain ❤️" \
--chain-id prysm-devnet-1 \
--gas auto --gas-adjustment 1.5 --fees 6000uprysm \
-y
Edit Existing Validator
prysmd tx staking edit-validator \
--commission-rate 0.1 \
--new-moniker "" \
--identity "" \
--details "I love blockchain ❤️" \
--from $WALLET \
--chain-id prysm-devnet-1 \
--gas auto --gas-adjustment 1.5 --fees 6000uprysm \
-y
Validator info
prysmd status 2>&1 | jq
Validator 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 --fees 6000uprysm -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
Create New Text Proposal
prysmd tx gov submit-proposal \
--title "" \
--description "" \
--deposit 1000000uprysm \
--type Text \
--from $WALLET \
--gas auto --gas-adjustment 1.5 --fees 6000uprysm \
-y
Proposals List
prysmd query gov proposals
Proposal ID
1
Yes
prysmd tx gov vote 1 yes --from $WALLET --chain-id prysm-devnet-1 --gas auto --gas-adjustment 1.5 --fees 6000uprysm -y
No
prysmd tx gov vote 1 no --from $WALLET --chain-id prysm-devnet-1 --gas auto --gas-adjustment 1.5 --fees 6000uprysm -y
No with vote
prysmd tx gov vote 1 no_with_veto --from $WALLET --chain-id prysm-devnet-1 --gas auto --gas-adjustment 1.5 --fees 6000uprysm -y
Abstain
prysmd tx gov vote 1 abstain --from $WALLET --chain-id prysm-devnet-1 --gas auto --gas-adjustment 1.5 --fees 6000uprysm -y