Skip to content

Instantly share code, notes, and snippets.

@okwme
Last active March 12, 2020 13:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save okwme/c9f8a0f7f09bae1a859bb9d8b192eac5 to your computer and use it in GitHub Desktop.
Save okwme/c9f8a0f7f09bae1a859bb9d8b192eac5 to your computer and use it in GitHub Desktop.
init command to clear and configure a testnet gaia node
#!/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