Requirements & Recommendations
Before installing a Fortytwo Relay Node, verify that the ‘Relay Node Requirements’ are met.- It is recommended to have previous experience of operating relay or being Validator/Operator on a blockchain with knowledge of Docker and Linux.
- It is best to run Fortytwo Relay on a dedicated server. Both Relay Node and Inference Node can run on the same server if set up correctly (read more here).
- Staying online 24/7 will greatly affect the node’s quality and rewards.
1. Prerequisites
Access to Fortytwo Relay Setup RepositoryInstalled Docker
Private key from an EVM-Compatible Web3 account
2. Setting Up the Fortytwo Relay Node
1
Review the requirements
Being a Relay Noderunner has specific requirements: ‘Relay Node Requirements’.Make sure that your system/virtual machine meets them before proceeding to launch the node.
2
Get the repository
Clone or download and extract the Relay Node repository manually: Fortytwo Relay Setup . If you need more specific instructions, unwrap the following section:
Downloading the Repository from GitHub
Downloading the Repository from GitHub
- Get via CMD
- Download Manually
- macOS
- Windows
- Linux (Ubuntu/Debian)
1
If you have previously removed git (git comes preinstalled on macOS):Install Git
or install Xcode Command Line Tools:
or install Xcode Command Line Tools:
2
Open the Terminal.
3
Navigate to your preferred installation directory with
cd command, or run the following command to continue installation in the default location in your home directory:4
Run the following commands to clone the node package and enter the folder:
3
Setup the `.env` file
Create an Open the
Read the ‘Environment Setup’ page for details.
.env file from the .env.example reference file and update environment variables:.env file and specify your unique FT_ACCOUNT_PRIVATE_KEY.Read the ‘Environment Setup’ page for details.
Your private key must be different from the account that you use with your Inference Node.
Keep your Private Key secure! Never share it publicly or commit it to version control systems.
4
Set up the port
Check the
.env file and ensure that FT_NODE_LISTENER_PORT is publicly accessible over both TCP and UDP.
Static public IP is required.‘Ports Availablity Verification’ can help you check if the Swarm will be able to see your node.How To Run a Relay Node Alongside an Inference Node
To run your Inference and Relay Nodes on the same machine at the same time, you need to:1
Edit the .env file
- Change the default
FT_NODE_LISTENER_PORTandFT_RPC_SERVICE_PORT. They have to be different from the Inference Node ports, which by default are42042and42420respectively. - Define a unique
FT_ACCOUNT_PRIVATE_KEY, it must be different from the account that you use with your Inference Node.
2
Ensure that FT_NODE_LISTENER_PORT is publicly accessible over both TCP and UDP
Note that static public IP is required.‘Ports Availablity Verification’ can help you check if the Swarm will be able to see your node.
3. Launching the Fortytwo Relay Node
1
Launch Docker
Launch Docker and wait until its interface says “Engine running”.
2
Build the Docker Compose services
3
Run the services in the background
How to Make Sure it Works?
If everything went successfully, you should now be able to open Docker and see thefortytwo-relay-setup or fortytwo-relay-setup-main process running (depending on how you got the repository).
If you unwrap it and go to fortytwo-relay container, you can see the logging of the node running successfully. The node periodically tests its health and reports on your relay address status, like in this example:
4. Operating Your Node
The node will remain fully operational until it is terminated by the user or the system restarts.Updating Your Node
The node updates automatically every time it is launched and while operational.Stopping Your Node
To stop the running container, either stop it from the Docker interface, or execute the following command from the same folder where thedocker-compose.yml is located:
Support
If you encounter any issues or have questions about Relay nodes:- Join our Discord community . Relay Noderunners have access to the
#relay-supportchannel.- The Relay Noderunner role is required to access the
#relay-supportchannel and is assigned to you automatically if you specify your Discord username in your Relay Application Form . - If you did not specify your Discord username in your Application, contact our Community team on Discord to receive the Relay Noderunner role.
- The Relay Noderunner role is required to access the
- See our ‘FAQ’.