Utils collection
Check next epoch stake
curl -sL https://gist.githubusercontent.com/AGx10k/e001f79e64a2440c406e9d0839ea0698/raw/sol_stake_next.sh | bash -s -- $(solana-keygen pubkey $HOME/solana/vote-account-keypair.json)
Check vote balance
solana balance $HOME/solana/vote-account-keypair.json
Withdraw rewards AUTO - from vote to validator and transfer to your external wallet
wget https://gist.githubusercontent.com/Bambarello/213089141801416bfa99d388560e9f8b/raw/sol_withdraw.sh
setup the min balance on the validator acc, setup the wallet for withdrawal.
curl -sL https://gist.githubusercontent.com/Bambarello/213089141801416bfa99d388560e9f8b/raw/sol_withdraw.sh | bash -s -- {{ADDRESS_TO_WITHDRAW}}
Withdraw rewards TO VALIDATOR ONLY
curl -sL https://gist.githubusercontent.com/Bambarello/213089141801416bfa99d388560e9f8b/raw/withdraw-to-val.sh | bash -s -- {{AMOUNT_TO_WITHDRAW}}
List stakes on your validator (all on validator)
curl -sL https://gist.githubusercontent.com/Bambarello/213089141801416bfa99d388560e9f8b/raw/sol_list_stakes.sh | bash -s --
Update with fresh snapshot
- and use --no-snapshot-fetch in your validator config
curl -sL https://gist.githubusercontent.com/Bambarello/213089141801416bfa99d388560e9f8b/raw/update.sh | bash -s -- v1.4.27
screen bash -c "sleep $(shuf -i 10-100 -n 1) && solana-install init 1.5.8 && grep -m1 'snapshot-' < <(inotifywait -m -e moved_to /root/solana/validator-ledger/) && systemctl daemon-reload && service solana restart && journalctl -u solana -f --no-hostname
while true; do time solana catchup /root/solana/validator-keypair.json http://127.0.0.1:8899/; sleep 15; done"
Solana Slots before Update
curl -sL https://gist.githubusercontent.com/AGx10k/cf764fc3296e6b277e4b4177e918b816/raw/solana-slots-to-update.sh | bash -s --