Created
November 24, 2018 00:19
-
-
Save bneiluj/68063328f02bd20a671e10126d07727f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "Enter your key password:" | |
read -s password | |
while true | |
do | |
amount_steak=$(gaiacli query account <comosaddr> --chain-id=9002 --trust-node=true | jq -r '.value.coins[0].amount') | |
if [[ $amount_steak > 0 && $amount_steak != "null" ]]; then | |
echo "About to stake ${amount_steak} steak" | |
echo "${password}" | gaiacli tx delegate --amount=${amount_steak}steak --from=crytter --validator=<cosmosvaloper> --chain-id=gaia-9002 | |
fi | |
sleep 60 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment