Service operations βοΈ
Check logs
Copy sudo journalctl -u prysmd -f
Start service
Copy sudo systemctl start prysmd
Stop service
Copy sudo systemctl stop prysmd
Restart service
Copy sudo systemctl restart prysmd
Check service status
Copy sudo systemctl status prysmd
Reload services
Copy sudo systemctl daemon-reload
Enable Service
Copy sudo systemctl enable prysmd
Disable Service
Copy sudo systemctl disable prysmd
Node info
Copy prysmd status 2>&1 | jq
Your node peer
Copy 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
Copy prysmd keys add $WALLET
Restore executing wallet
Copy prysmd keys add $WALLET --recover
List All Wallets
Delete wallet
Copy prysmd keys delete $WALLET
Check Balance
Copy prysmd q bank balances $WALLET_ADDRESS
Export Key (save to wallet.backup)
Copy prysmd keys export $WALLET
View EVM Prived Key
Copy prysmd keys unsafe-export-eth-key $WALLET
Import Key (restore from wallet.backup)
Copy prysmd keys import $WALLET wallet.backup
Tokens
To valoper addressTo wallet addressAmount, uprysm
Withdraw all rewards
Copy 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
Copy 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
Copy prysmd query bank balances $WALLET_ADDRESS
Delegate to Yourself
Copy 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
Copy 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
Copy 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
Copy 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
Copy prysmd tx bank send $WALLET_ADDRESS < TO_WALLET_ADDRES S > 1000000uprysm --gas auto --gas-adjustment 1.5 -y
Validator operations
MonikerIdentityDetailsAmount, uprysmCommission rateCommission max rateCommission max change rate
Create New Validator
Copy 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
Copy 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
Copy prysmd status 2>&1 | jq
Validator Details
Copy prysmd q staking validator $( prysmd keys show $WALLET --bech val -a )
Jailing info
Copy prysmd q slashing signing-info $( prysmd tendermint show-validator )
Slashing parameters
Copy prysmd q slashing params
Unjail validator
Copy prysmd tx slashing unjail --from $WALLET --chain-id prysm-devnet-1 --gas auto --gas-adjustment 1.5 -y
Active Validators List
Copy 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
Copy [[ $(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
Copy prysmd q slashing signing-info $( prysmd tendermint show-validator )
Governance
TitleDescriptionDeposit, uprysm
Create New Text Proposal
Copy prysmd tx gov submit-proposal \
--title "" \
--description "" \
--deposit 1000000uprysm \
--type Text \
--from $WALLET \
--gas auto --gas-adjustment 1.5 \
-y
Proposals List
Copy prysmd query gov proposals
Proposal IDProposal optionYesNoNo with vetoAbstain
View proposal
Copy prysmd query gov proposal 1
Vote
Copy prysmd tx gov vote 1 yes --from $WALLET --chain-id prysm-devnet-1 --gas auto --gas-adjustment 1.5 -y