Last active
March 12, 2020 13:18
-
-
Save okwme/c9f8a0f7f09bae1a859bb9d8b192eac5 to your computer and use it in GitHub Desktop.
init command to clear and configure a testnet gaia node
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/bash | |
rm -rf ~/.gaiacli | |
rm -rf ~/.gaiad | |
gaiad init mynode --chain-id testchain | |
gaiacli config keyring-backend file | |
(echo '1234567890'; echo '1234567890') | gaiacli keys add me | |
(echo '1234567890'; echo '1234567890') | gaiacli keys add you | |
gaiad add-genesis-account $(echo "1234567890" | gaiacli keys show me -a) 1000uatom,100000000stake | |
gaiad add-genesis-account $(echo "1234567890" | gaiacli keys show you -a) 1000uatom | |
gaiacli config chain-id testchain | |
gaiacli config output json | |
gaiacli config indent true | |
gaiacli config trust-node true | |
(echo '1234567890'; echo '1234567890'; echo '1234567890') | gaiad gentx --name me --keyring-backend file | |
gaiad collect-gentxs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment