Babylon node setup guide

MaransCrypto
4 min readJan 7, 2024

--

1️⃣/ Buy VPS Node

👉 Go to :- https://tinyurl.com/LowPriceVpsTamil

➖ Select 14 $/ Month

➖ Enter ‘ Hostname ‘ as ‘ root ‘

➖ Select location

➖ Select operating system

➖ Checkout & complete payment with USDT

2️⃣/ Install putty mobile app & setup VPS

👉Go to :- https://play.google.com/store/apps/details?id=com.minisatip.putty

- Install putty application
- Click "+" icon
- Enter "root@YOUR_IP"
- Setup a nickname

4️⃣/ Go to terminal

- Enter password
- Start copy pasting the code below

1/ Replace "Your Username" with your node name:

MONIKER = "Your Username"

2/ 𝗜𝗻𝘀𝘁𝗮𝗹𝗹 𝗱𝗲𝗽𝗲𝗻𝗱𝗲𝗻𝗰𝗶𝗲𝘀

sudo apt -q update
sudo apt -qy install curl git jq lz4 build-essential
sudo apt -qy upgrade

3/ 𝗜𝗡𝗦𝗧𝗔𝗟𝗟 𝗚𝗢:

sudo rm -rf /usr/local/go
curl -Ls https://go.dev/dl/go1.20.12.linux-amd64.tar.gz | sudo tar -xzf - -C /usr/local
eval $(echo 'export PATH=$PATH:/usr/local/go/bin' | sudo tee /etc/profile.d/golang.sh)
eval $(echo 'export PATH=$PATH:$HOME/go/bin' | tee -a $HOME/.profile)

4/ 𝗗𝗼𝘄𝗻𝗹𝗼𝗮𝗱 𝗮𝗻𝗱 𝗯𝘂𝗶𝗹𝗱 𝗯𝗶𝗻𝗮𝗿𝗶𝗲𝘀

# Clone project repository
cd $HOME
rm -rf babylon
git clone https://github.com/babylonchain/babylon.git
cd babylon
git checkout v0.7.2

# Build binaries
make build

# Prepare binaries for Cosmovisor
mkdir -p $HOME/.babylond/cosmovisor/genesis/bin
mv build/babylond $HOME/.babylond/cosmovisor/genesis/bin/
rm -rf build

# Create application symlinks
sudo ln -s $HOME/.babylond/cosmovisor/genesis $HOME/.babylond/cosmovisor/current -f
sudo ln -s $HOME/.babylond/cosmovisor/current/bin/babylond /usr/local/bin/babylond -f

5/ 𝗜𝗻𝘀𝘁𝗮𝗹𝗹 𝗖𝗼𝘀𝗺𝗼𝘃𝗶𝘀𝗼𝗿 𝗮𝗻𝗱 𝗰𝗿𝗲𝗮𝘁𝗲 𝗮 𝘀𝗲𝗿𝘃𝗶𝗰𝗲

# Download and install Cosmovisor
go install cosmossdk.io/tools/cosmovisor/cmd/cosmovisor@v1.5.0

# Create service
sudo tee /etc/systemd/system/babylon.service > /dev/null << EOF
[Unit]
Description=babylon node service
After=network-online.target

[Service]
User=$USER
ExecStart=$(which cosmovisor) run start
Restart=on-failure
RestartSec=10
LimitNOFILE=65535
Environment="DAEMON_HOME=$HOME/.babylond"
Environment="DAEMON_NAME=babylond"
Environment="UNSAFE_SKIP_BACKUP=true"
Environment="PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:$HOME/.babylond/cosmovisor/current/bin"

[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable babylon.service

6/ 𝗜𝗻𝗶𝘁𝗶𝗮𝗹𝗶𝘇𝗲 𝘁𝗵𝗲 𝗻𝗼𝗱𝗲

# Set node configuration
babylond config chain-id bbn-test-2
babylond config keyring-backend test
babylond config node tcp://localhost:16457

# Initialize the node
babylond init $MONIKER --chain-id bbn-test-2

# Download genesis and addrbook
curl -Ls https://snapshots.kjnodes.com/babylon-testnet/genesis.json > $HOME/.babylond/config/genesis.json
curl -Ls https://snapshots.kjnodes.com/babylon-testnet/addrbook.json > $HOME/.babylond/config/addrbook.json

# Add seeds
sed -i -e "s|^seeds *=.*|seeds = \"3f472746f46493309650e5a033076689996c8881@babylon-testnet.rpc.kjnodes.com:16459\"|" $HOME/.babylond/config/config.toml

# Set minimum gas price
sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"0.00001ubbn\"|" $HOME/.babylond/config/app.toml

# Set pruning
sed -i \
  -e 's|^pruning *=.*|pruning = "custom"|' \
  -e 's|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|' \
  -e 's|^pruning-keep-every *=.*|pruning-keep-every = "0"|' \
  -e 's|^pruning-interval *=.*|pruning-interval = "19"|' \
  $HOME/.babylond/config/app.toml

# Set custom ports
sed -i -e "s%^proxy_app = \"tcp://127.0.0.1:26658\"%proxy_app = \"tcp://127.0.0.1:16458\"%; s%^laddr = \"tcp://127.0.0.1:26657\"%laddr = \"tcp://127.0.0.1:16457\"%; s%^pprof_laddr = \"localhost:6060\"%pprof_laddr = \"localhost:16460\"%; s%^laddr = \"tcp://0.0.0.0:26656\"%laddr = \"tcp://0.0.0.0:16456\"%; s%^prometheus_listen_addr = \":26660\"%prometheus_listen_addr = \":16466\"%" $HOME/.babylond/config/config.toml
sed -i -e "s%^address = \"tcp://localhost:1317\"%address = \"tcp://0.0.0.0:16417\"%; s%^address = \":8080\"%address = \":16480\"%; s%^address = \"localhost:9090\"%address = \"0.0.0.0:16490\"%; s%^address = \"localhost:9091\"%address = \"0.0.0.0:16491\"%; s%:8545%:16445%; s%:8546%:16446%; s%:6065%:16465%" $HOME/.babylond/config/app.toml

7/ 𝗗𝗼𝘄𝗻𝗹𝗼𝗮𝗱 𝗹𝗮𝘁𝗲𝘀𝘁 𝗰𝗵𝗮𝗶𝗻 𝘀𝗻𝗮𝗽𝘀𝗵𝗼𝘁



curl -L https://snapshots.kjnodes.com/babylon-testnet/snapshot_latest.tar.lz4 | tar -Ilz4 -xf - -C $HOME/.babylond
[[ -f $HOME/.babylond/data/upgrade-info.json ]] && cp $HOME/.babylond/data/upgrade-info.json $HOME/.babylond/cosmovisor/genesis/upgrade-info.json
Latest snapshot is being downloaded
Latest snapshot is downloaded

8/ 𝗦𝘁𝗮𝗿𝘁 𝘀𝗲𝗿𝘃𝗶𝗰𝗲 𝗮𝗻𝗱 𝗰𝗵𝗲𝗰𝗸 𝘁𝗵𝗲 𝗹𝗼𝗴𝘀



sudo systemctl start babylon.service && sudo journalctl -u babylon.service -f --no-hostname -o cat

👉 Node is online 😁 congratulations anon

That's it for now 🎉

Want to remain updated with this airdrop?

👉 Join us on Telegram

👉🏻 Follow @MaransCrypto

👉 Join weekly newsletter

Clap 👏 Max 👏

--

--

MaransCrypto
MaransCrypto

Written by MaransCrypto

⭕✨Vision :- 🔥To Spread Awareness About #Airdrops #NFTs #Nodes Among #Communities 💥Our Links :- https://link3.to/maranscrypto

Responses (3)