Installation Node

  • Network Type: Testnet
  • Chain-id: soarchaintestnet-1
  • Current Node version: v0.2.11
  • 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.21.7 If you already have GO installed you can skip this

    ver="1.22.3"
    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/soar-robotics/mainnet-rehearsal.git
    cd mainnet-rehearsal/binary
    tar -xvf $HOME/mainnet-rehearsal/binary/ubuntu22.04/soarchaind.tar.gz
    sudo mv soarchaind /usr/local/go/bin
    wget https://github.com/CosmWasm/wasmvm/releases/download/v1.5.2/libwasmvm.x86_64.so
    sudo mv libwasmvm.x86_64.so /usr/lib/

    Verify that you’ve installed soarchaind successfully

    soarchaind version

    Initialize Node

    Please change <MONIKER> To your own Moniker.

    soarchaind init <MONIKER> --chain-id soarchaintestnet-1 --default-denom utsoar

    Download Genesis file and addrbook

    • Genesis
    wget -O $HOME/.soarchain/config/genesis.json "https://raw.githubusercontent.com/soar-robotics/mainnet-rehearsal/main/network/genesis.json"
    • Addrbook

    Configure Seeds and Peers

    peers="915b6fdd5a070e09bbf3c236a40bf408865fd97f@5.9.151.56:25256"
    sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.soarchain/config/config.toml
    sed -i -e 's|^minimum-gas-prices *=.*|minimum-gas-prices = "0utsoar"|' $HOME/.soarchain/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/.soarchain/config/app.toml

    create service file and start node

    Create service file Create a ojod.service file in the /etc/systemd/system folder with the following code. You can change USER with your Linux user name. You need sudo previlege to do this step.

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

    Create Validator

    Heads up to the Cheat Sheets to create validator