️🏆AIRchains

Website: https://www.airchains.io/

Twitter: https://twitter.com/airchains_io

Discord: https://discord.com/invite/airchains

Chain ID: junction

SPEC
Minimum

CPU

2 Cores

RAM

4 GB

Storage

100 GB SSD or Nvme

SPEC
Recommend

CPU

4 Cores

RAM

8 GB

Storage

200 GB SSD or Nvme

Update and install packages for compiling

Install required packages

sudo apt update && sudo apt upgrade -y
sudo apt install make curl git wget htop tmux build-essential jq make lz4 gcc unzip -y

Install Go

cd $HOME && \
ver="1.22.1" && \
wget "https://golang.org/dl/go$ver.linux-amd64.tar.gz" && \
sudo rm -rf /usr/local/go && \
sudo tar -C /usr/local -xzf "go$ver.linux-amd64.tar.gz" && \
rm "go$ver.linux-amd64.tar.gz" && \
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile && \
source $HOME/.bash_profile && \
go version

Build binary

wget https://github.com/airchains-network/junction/releases/download/v0.1.0/junctiond
chmod +x junctiond
sudo mv junctiond /usr/local/bin

Initialize the Node with the Moniker

Replace with your own moniker

junctiond init <moniker>

Download Genesis

wget https://github.com/airchains-network/junction/releases/download/v0.1.0/genesis.json
cp genesis.json $HOME/.junction/config/genesis.json

Configure

SEEDS="[email protected]:26656"
PEERS="[email protected]:26656"
sed -i -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.junction/config/config.toml

Set Pruning, Enable Prometheus, Gas Price, and Indexer

PRUNING="custom"
PRUNING_KEEP_RECENT="100"
PRUNING_INTERVAL="19"
sed -i -e "s/^pruning *=.*/pruning = \"$PRUNING\"/" $HOME/.junction/config/app.toml
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \
\"$PRUNING_KEEP_RECENT\"/" $HOME/.junction/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \
\"$PRUNING_INTERVAL\"/" $HOME/.junction/config/app.toml
sed -i -e 's|^indexer *=.*|indexer = "null"|' $HOME/.junction/config/config.toml
sed -i 's|^prometheus *=.*|prometheus = true|' $HOME/.junction/config/config.toml
sed -i -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0.00025amf\"/" $HOME/.junction/config/app.toml

Create service

sudo tee /etc/systemd/system/junctiond.service > /dev/null << EOF
[Unit]
Description=Airchain Node
After=network-online.target
StartLimitIntervalSec=0
[Service]
User=$USER
Restart=always
RestartSec=3
LimitNOFILE=65535
ExecStart=/usr/local/bin/junctiond start
[Install]
WantedBy=multi-user.target
EOF

System reload

sudo systemctl daemon-reload 

Start service

sudo service junctiond start

Start Node

junctiond start

Check logs

sudo journalctl -fu junctiond

Check Node status

junctiond status

Do not proceed with further steps until this process is finished. 'catching_up' field MUST return 'false'

Last updated