Skip to content

Instantly share code, notes, and snippets.

@mnugumanova
mnugumanova / Regen-autodelegate.sh
Last active April 28, 2022 18:41
Script that withdraws commission and reward from the Regen network account and auto-delegates these tokens to the validator every 3 hours
echo "Enter your key password:"
read -s password
while true
do
echo "About to withdraw commission and reward"
echo "${password}" | xrncli tx distr withdraw-rewards <xrn:valoperAddress> --commission --from <key-name> --chain-id=$(cat ~/.xrnd/config/genesis.json | jq -r .chain_id) -y
sleep 60
amount=$(xrncli query account <xrn:address> --chain-id=$(cat ~/.xrnd/config/genesis.json | jq -r .chain_id) -o json --indent | jq -r '.value.coins[1].amount')
if [[ $amount > 0 && $amount != "null" ]]; then
@mnugumanova
mnugumanova / gaia_install.sh
Created March 13, 2019 07:14 — forked from kwunyeung/gaia_install.sh
bash script for installing go and gaia testnet on Ubuntu
#!/bin/bash
# Upgrade the system and install go
sudo apt update
sudo apt upgrade -y
sudo apt install gcc git make -y
sudo snap install --classic go
sudo mkdir -p /opt/go/bin
# Export environment variables

Keybase proof

I hereby claim:

  • I am mnugumanova on github.
  • I am miro4ka (https://keybase.io/miro4ka) on keybase.
  • I have a public key ASCl4WlmzGJyv8fAbFSkyI8vzZ7iNbxqJefah46ForDUKwo

To claim this, I am signing this object: