- Snapshot : https://snap.node.seputar.codes/bb/
- Snapshot File : https://snap.node.seputar.codes/bb/snapshot_latest.tar.lz4
wget -O bonusblock.sh https://raw.githubusercontent.com/SaujanaOK/BonusBlock/main/bonusblock.sh && chmod +x bonusblock.sh && ./bonusblock.sh
source $HOME/.bash_profile
sudo apt install lz4 -y
sudo systemctl stop bonus-blockd
cp $HOME/.bonusblock/data/priv_validator_state.json $HOME/.bonusblock/priv_validator_state.json.backup
rm -rf $HOME/.bonusblock/data
curl -L https://snap.node.seputar.codes/bb/snapshot_latest.tar.lz4 | lz4 -dc - | tar -xf - -C $HOME/.bonusblock
mv $HOME/.bonusblock/priv_validator_state.json.backup $HOME/.bonusblock/data/priv_validator_state.json
sudo systemctl restart bonus-blockd && sudo journalctl -u bonus-blockd -f --no-hostname -o cat
bonus-blockd keys add $WALLET
bonus-blockd keys add $WALLET --recover
bonus-blockd keys list
BONUS_WALLET_ADDRESS=$(bonus-blockd keys show $WALLET -a)
BONUS_VALOPER_ADDRESS=$(bonus-blockd keys show $WALLET --bech val -a)
echo 'export BONUS_WALLET_ADDRESS='${BONUS_WALLET_ADDRESS} >> $HOME/.bash_profile
echo 'export BONUS_VALOPER_ADDRESS='${BONUS_VALOPER_ADDRESS} >> $HOME/.bash_profile
source $HOME/.bash_profile
bonus-blockd status 2>&1 | jq .SyncInfo
journalctl -fu bonus-blockd -o cat
bonus-blockd status 2>&1 | jq .NodeInfo
bonus-blockd status 2>&1 | jq .ValidatorInfo
bonus-blockd tendermint show-node-id
bonus-blockd query bank balances $BONUS_WALLET_ADDRESS
bonus-blockd tx staking create-validator \
--amount 100000ubonus \
--from $WALLET \
--commission-max-change-rate "0.01" \
--commission-max-rate "0.2" \
--identity="<your_keybase_id>" \
--website="<your_website>" \
--details="<your_validator_description>" \
--commission-rate "0.07" \
--min-self-delegation "1" \
--pubkey $(bonus-blockd tendermint show-validator) \
--moniker $NODENAME \
--gas=auto \
--gas-adjustment=1.2 \
--gas-prices=0.025ubonus \
--chain-id $BONUS_CHAIN_ID
bonus-blockd tx staking edit-validator \
--new-moniker="nama-node" \
--identity="<your_keybase_id>" \
--website="<your_website>" \
--details="<your_validator_description>" \
--chain-id=$BONUS_CHAIN_ID \
--gas=auto \
--fees=260000000ubonus \
--gas-adjustment=1.2 \
--from=$WALLET
bonus-blockd tx slashing unjail \
--broadcast-mode=block \
--from=$WALLET \
--chain-id=$BONUS_CHAIN_ID \
--fees=200000000ubonus \
--gas-adjustment=1.2 \
--gas=auto
bonus-blockd tx gov vote 1 yes --from $WALLET --chain-id=$BONUS_CHAIN_ID --gas=auto --fees=2500000ubonus
bonus-blockd tx staking delegate $BONUS_VALOPER_ADDRESS 1000000000000ubonus --from=$WALLET --chain-id=$BONUS_CHAIN_ID --gas=auto --fees=250000ubonus
bonus-blockd tx distribution withdraw-all-rewards --from=$WALLET --chain-id=$BONUS_CHAIN_ID --gas=auto --fees=2500000ubonus
bonus-blockd tx distribution withdraw-rewards $BONUS_VALOPER_ADDRESS --from=$WALLET --commission --chain-id=$BONUS_CHAIN_ID --gas=auto --fees=2500000ubonus
sudo systemctl stop bonus-blockd && \
sudo systemctl disable bonus-blockd && \
rm -rf /etc/systemd/system/bonus-blockd.service && \
sudo systemctl daemon-reload && \
cd $HOME && \
rm -rf BonusBlock-chain && \
rm -rf bonus.sh && \
rm -rf .bonusblock && \
rm -rf $(which bonus-blockd)