Cover photo

Step-by-Step Guide: Launching Testnet and Mainnet Nodes for Elixir

Running Elixir Nodes: Testnet & Prod

Elixir now allows us to:
๐Ÿ”น Run test nodes to test the staking mechanism using test tokens.
๐Ÿ”น Run prod nodes to test system stability (no tokens needed yet).

๐Ÿ’ก Both types of nodes might qualify for future airdrops, so itโ€™s worth setting them up!

๐Ÿ›  My Setup:

  • Wallet: Rabbit (freshly created for security).

  • Faucet.

  • Server: Contabo VPS โ€“ affordable, no ID verification required (~$12.50/month + one-time $8 fee).

  • Terminal.

  • MacOS.

    Requirements: 8GB RAM, 100Mbit connection, 100GB disk space.

post image

Run Your Mainnet Validator


1. VPS Purchase
I use Contabo โ€“ it doesnโ€™t require document verification and is quite affordable. The only downside is a one-time payment of about $8โ€“9.

Choose your cloud VPS. Iโ€™m using the VPS2. Itโ€™s enough for running two validators (test and prod).

When setting up the server before payment, leave all fields as default, except for setting a password for your server.

Total cost: ~ $20.

2. Connect to the server.
Launch the Terminal and connect to your server. Copy your server's IP address and paste it into the following command. Press Enter after entering each command.

ssh root@<server_ip>

Wait until the program asks to enter the password and then enter your server password.

If all is ok you should see something like this:

post image


3. Setup the server

3.1 Run these commands one by one:

sudo apt update && sudo apt upgrade -y

sudo apt install -y curl git jq lz4 build-essential unzip

3.2 Install the Docker:

sudo apt install -y ca-certificates curl gnupg lsb-release 

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

sudo apt update && sudo apt install -y docker-ce docker-ce-cli containerd.io

sudo usermod -aG docker $USER

newgrp docker

3.3 Create the custom directory on the server and open it.

mkdir elixir && cd elixir

3.4 Download the file where we will store the node variables:

wget https://files.elixir.finance/validator.env

3.5 Now edit the file. First you should open it. Run this command:

nano validator.env

It should look like this:

post image

3.6 Fill in the required fields. Note: The cursor wonโ€™t work as usual in the terminal. Use the up and down arrow keys to navigate between text fields.

#STRATEGY_EXECUTOR_DISPLAY_NAME - set any name you want;

#STRATEGY_EXECUTOR_BENEFICIARY - your EVM wallet address;

#SIGNER_PRIVATE_KEY - find the private key in the wallet settings and paste it here and I highly recommend to not use your main wallet, create a new way. Sharing your private key is always unsafe!

3.7 Save the changes:
Press Ctrl + W, then hit Enter to confirm saving.
Exit the editor by pressing Ctrl + X.

4. Running validator:

4.1 Download the Docker image:

docker pull elixirprotocol/validator

4.2 Start validator:

docker run -it \
  --env-file /root/elixir/validator.env \
  --name elixir \
  elixirprotocol/validator

READY!

โณ Wait ~10โ€“30 mins and check your validator here:๐Ÿ”— https://www.elixir.xyz/validators

post image

Run Your Testnet Validator

For a test node, you donโ€™t need to set up a server or Docker โ€“ everything is already prepared. Open a new terminal tab and log in to the server. Repeat the login command from earlier.

1. Create a new directory for the test node where the file will be downloaded.
For example:

mkdir elixir_test && cd elixir_test

2. Download the file and open it using these commands:
wget https://files.elixir.finance/validator.env
nano validator.env

Set env=testnet in the file and fill out the other fields with the same data as in the previous step.

Save the changes:
Press Ctrl + W, then hit Enter to save.
Exit by pressing Ctrl + X.

3. Pull the testnet Docker image:
docker pull elixirprotocol/validator:testnet

4. Launch the node:

docker run -it \
  --env-file /root/elixir_test/validator.env \
  --name elixir \
  elixirprotocol/validator:testnet

5.If everything is running correctly, youโ€™ll need to stake test tokens and delegate them to your delegator.

- Visit: https://testnet-3.elixir.xyz/.
- Connect your wallet (make sure to get test ETH from a faucet first).
- Click Claim $MOCK tokens and delegate them for staking.

post image

Upgrading Your Validator

As the Elixir team continues to improve the validator, you may need to update to the latest version. To do this, follow these steps:

  1. Open a terminal in the directory where your Dockerfile is located.

  2. Run the following commands:

    docker kill elixir docker rm elixir docker pull elixirprotocol/validator
    
  3. After completing these steps, rerun the original Docker command you used to start the validator.

This will ensure your validator is running the latest version.

Join my Airdrop Marathon 365 and donโ€™t miss out:https://t.me/airdrop_marathon_365

๐Ÿ’ฅ Join the marathon โ€“ my 2025 challenge where, starting from January 12, 2025, I share daily updates about what Iโ€™m farming today.

๐Ÿ“… Perfect for copy-farming and staying ahead in the airdrop game. Letโ€™s farm together and maximize those rewards! ๐Ÿš€