Skip to content

Instantly share code, notes, and snippets.

View smiled0g's full-sized avatar
🐻
Fighting bear market by BUIDLing great products

Paul N. smiled0g

🐻
Fighting bear market by BUIDLing great products
  • Band Protocol, TripAdvisor, Turfmapp
  • Bangkok, Thailand
  • X @PNattapatsiri
View GitHub Profile
# Download genesis file from the repository.
wget https://raw.githubusercontent.com/bandprotocol/launch/master/band-wenchang-mainnet/genesis.json
# Move the genesis file to the proper location
mv genesis.json $HOME/.bandd/config
# Add some persistent peers
sed -E -i \
's/persistent_peers = \".*\"/persistent_peers = \"924a8094846222e14c7b86bfb42c0ddfd93cc6d1@wcms1.bandchain.org:26656,4c0b2cadc5ec7de90379b4a8fb7e19c252c7e565@wcms2.bandchain.org:26656\"/' \
$HOME/.bandd/config/config.toml
@smiled0g
smiled0g / create_account_and_init_chain.sh
Created June 11, 2020 08:18 — forked from sorawit/create_account_and_init_chain.sh
create_account_and_init_chain.sh
# Create a new Band wallet. Do not lose your mnemonic!
bandcli keys add [[YOUR_WALLET]]
# Initialize a blockchain environment for generating genesis transaction.
bandd init --chain-id band-wenchang-mainnet [[YOUR_MONIKER]]
# Install bandd, change its permission, and move to /usr/local/bin
wget -O bandd https://github.com/bandprotocol/bandchain/releases/download/v0.2.4/bandd_linux_amd64
chmod +x bandd
sudo mv bandd /usr/local/bin
# Install bandcli, change its permission, and move to /usr/local/bin
wget -O bandcli https://github.com/bandprotocol/bandchain/releases/download/v0.2.4/bandcli_linux_amd64
chmod +x bandcli
sudo mv bandcli /usr/local/bin