Created
December 29, 2018 05:36
-
-
Save kidinamoto01/c61bdb35995a0c5e3b125b727ca8382c to your computer and use it in GitHub Desktop.
generation.sh
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
#!/bin/bash | |
echo What\'s the gentx directory? | |
read dir | |
iris init --home="$dir" --chain-id=fuxi-6000 | |
for filename in "$dir"/config/gentx/*.json; do | |
echo "$filename" | |
addr=$(cat $filename| jq .value.msg[0].value.delegator_address -r) | |
echo "$addr" | |
iris add-genesis-account "$addr" 5000iris --home="$dir" | |
done | |
iris add-genesis-account faa1cwr6722qdt8h40zwntemdxvz2mvv8rcy6xr45x 10000000000iris --home="$dir" | |
iris collect-gentxs --home="$dir" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment