Installation Node

  • Network Type: Mainnet
  • Chain-id: archway-1
  • Current Node version: 4.0.2
  • Hardware requirements

    The following requirements are recommended for running Defund:

    • 4 or more physical CPU cores
    • At least 200GB of SSD disk storage
    • At least 8GB of memory (RAM)
    • At least 100mbps network bandwidth

    Install dependencies Required

    sudo apt update && sudo apt upgrade -y && sudo apt install curl tar wget clang pkg-config libssl-dev jq build-essential bsdmainutils git make ncdu gcc git jq chrony liblz4-tool -y

    Install go

    We are gonna use GO Version 1.20.6 If you already have GO installed you can skip this

    ver="1.20.6"
    cd $HOME
    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" >> ~/.bash_profile
    source ~/.bash_profile
    go version

    Install binary

    cd $HOME
    git clone https://github.com/archway-network/archway.git
    cd archway
    git checkout v4.0.2
    make install

    Config app

    MONIKER=
    archwayd init $MONIKER --chain-id archway-1
    archwayd config chain-id archway-1
    archwayd config keyring-backend file

    Download Genesis file and addrbook

    • Genesis
    curl -Ls https://ss.archway.nodestake.top/genesis.json > $HOME/.archway/config/genesis.json
    • Addrbook
    wget -O $HOME/.archway/config/addrbook.json "https://raw.githubusercontent.com/vinjan23/Mainnet/main/Archway/addrbook.json"

    Configure Seeds and Peers

    SEEDS="3ba7bf08f00e228026177e9cdc027f6ef6eb2b39@35.232.234.58:26656"
    sed -i -e "s|^seeds *=.*|seeds = \"$SEEDS\"|" $HOME/.archway/config/config.toml
    PEERS="47dc5221ee5e1bdd1a8d51093be5d25c4c0c8e95@51.195.6.227:26662,bd55b5f6d58013f2b14453de63510a06e5949b14@167.235.180.97:11556,b96b188c049814c0c848d285ebbfa5af77396387@65.108.238.219:11556,996a4e60bea02401787178cac264fddf23301921@65.109.20.54:11556,dec4f5b15f44dd1c1a35084e4d2da7e05fa7a9da@95.216.46.125:31656,f1b210360e2df8242cbbd9a54662abfd1d6a9faf@136.243.67.189:11556,3ba7bf08f00e228026177e9cdc027f6ef6eb2b39@35.232.234.58:26656"
    sed -i -e "s|^persistent_peers *=.*|persistent_peers = \"$peers\"|" $HOME/.archway/config/config.toml
    sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"1000000000000aarch\"|" $HOME/.archway/config/app.toml

    Config 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/.archway/config/app.toml

    create service file and start node

    sudo tee /etc/systemd/system/archwayd.service << EOF
    [Unit]
    Description=archway-mainnet
    After=network-online.target
    #
    [Service]
    User=$USER
    ExecStart=$(which archwayd) start
    RestartSec=3
    Restart=on-failure
    LimitNOFILE=65535
    #
    [Install]
    WantedBy=multi-user.target
    EOF
    • Enable Service and Start Node
    sudo systemctl daemon-reload
    sudo systemctl enable archwayd
    sudo systemctl restart archwayd
    sudo journalctl -u archwayd -f -o cat

    Create Validator

    Heads up to the Cheat Sheets to create validator