# Clone project repository
cd && rm -rf archway
git clone https://github.com/archway-network/archway
cd archway
git checkout v7.0.1
# Build binary
make install
# Set node CLI configuration
archwayd config chain-id archway-1
archwayd config keyring-backend file
archwayd config node tcp://localhost:11557
# Initialize the node
archwayd init "Your Node Name" --chain-id archway-1
# Download genesis and addrbook files
curl -L https://snapshots.nodejumper.io/archway/genesis.json > $HOME/.archway/config/genesis.json
curl -L https://snapshots.nodejumper.io/archway/addrbook.json > $HOME/.archway/config/addrbook.json
# Set seeds
sed -i -e 's|^seeds *=.*|seeds = "3ba7bf08f00e228026177e9cdc027f6ef6eb2b39@35.232.234.58:26656,b308dda41e4db2ee00852d91846f981c49943d46@161.97.96.91:46656,c28827cb96c14c905b127b92065a3fb4cd77d7f6@seeds.whispernode.com:11556,ebc272824924ea1a27ea3183dd0b9ba713494f83@archway-mainnet-seed.autostake.com:26946,20e1000e88125698264454a884812746c2eb4807@seeds.lavenderfive.com:11556,b6c1198fa025ce24d26d90527c5d2b71f9399756@seed-node.mms.team:34656,6471ac9ff8474373e8055d45b6246fd8c5204890@archway.seed.mzonder.com:10756,261acb73f483d1cace653cb54f7b8815f63b7e56@archway.lgns.net:26656,400f3d9e30b69e78a7fb891f60d76fa3c73f0ecc@archway.rpc.kjnodes.com:15659,bd9332cd0a99f5830ea457a32a56b32790f68716@135.181.58.28:27456"|' $HOME/.archway/config/config.toml
# Set minimum gas price
sed -i -e 's|^minimum-gas-prices *=.*|minimum-gas-prices = "196000000000aarch"|' $HOME/.archway/config/app.toml
# Set pruning
sed -i \
-e 's|^pruning *=.*|pruning = "custom"|' \
-e 's|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|' \
-e 's|^pruning-interval *=.*|pruning-interval = "17"|' \
$HOME/.archway/config/app.toml
# Change ports
sed -i -e "s%:1317%:11517%; s%:8080%:11580%; s%:9090%:11590%; s%:9091%:11591%; s%:8545%:11545%; s%:8546%:11546%; s%:6065%:11565%" $HOME/.archway/config/app.toml
sed -i -e "s%:26658%:11558%; s%:26657%:11557%; s%:6060%:11560%; s%:26656%:11556%; s%:26660%:11561%" $HOME/.archway/config/config.toml
# Download latest chain data snapshot
curl "https://snapshots.nodejumper.io/archway/archway_latest.tar.lz4" | lz4 -dc - | tar -xf - -C "$HOME/.archway"
# Create a service
sudo tee /etc/systemd/system/archwayd.service > /dev/null << EOF
[Unit]
Description=Archway node service
After=network-online.target
[Service]
User=$USER
ExecStart=$(which archwayd) start
Restart=on-failure
RestartSec=10
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable archwayd.service
# Start the service and check the logs
sudo systemctl start archwayd.service
sudo journalctl -u archwayd.service -f --no-hostname -o cat