Skip to content

Instantly share code, notes, and snippets.

@kidinamoto01
Created December 29, 2018 05:36
Show Gist options
  • Save kidinamoto01/c61bdb35995a0c5e3b125b727ca8382c to your computer and use it in GitHub Desktop.
Save kidinamoto01/c61bdb35995a0c5e3b125b727ca8382c to your computer and use it in GitHub Desktop.
generation.sh
#!/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