Created
June 9, 2018 23:02
-
-
Save UnitylChaos/af4e48e984952e0231e4190752d91ce6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/bin/sh | |
# Before running this script, you need to create two accounts in gaiacli | |
# Then transfer a token of some kind to your first account | |
# | |
# To create an account: | |
# gaiacli keys add mirror | |
# use the password "password" | |
# | |
# Repeat this for mirror2 | |
# Replace the accountone / accounttwo variables with the addresses of your accounts | |
# which can be found by using: | |
# gaiacli keys list | |
accountone="cosmosaccaddr1xxxxxxxx" | |
nameone="mirror" | |
passone="password" | |
accounttwo="cosmosaccaddr1yyyyyyyyy" | |
nametwo="mirror2" | |
passtwo="password" | |
#replace the token with 1 followed by whatever token you have available | |
token="1tokenname" | |
while : | |
do | |
echo $passone | gaiacli send --amount=$token --chain-id=gaia-6001 --name=$nameone --to=$accounttwo | |
echo $passtwo | gaiacli send --amount=$token --chain-id=gaia-6001 --name=$nametwo --to=$accountone | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment