Get the IP address of the host machine, you can use the following command in a terminal or command prompt
Set an A record for a domain, you need to access the domain's DNS settings and create an A record that points to the IP address of the host machine. This configuration allows users to reach your domain by resolving the domain name to the specific IP address associated with your host machine.
Create Reth directory
The first command, mkdir reth, will create a new directory named reth in the current location. The second command, cd reth, will change your current working directory to the newly created reth directory. Now you are inside the "reth" directory and can start storing docker-compose and related files in it.
Generate JWT token
Generate a 32-byte random hexadecimal value using OpenSSL, removes any newline characters, and then save the result into the file "jwt.hex" located in the reth directory.
Create .env file
Paste the following into the file.
ctrl + x and y to save file
Create docker-compose.yml
Paste the following into the docker-compose.yml
ctrl + x and y to save file
Run Reth
Monitor Logs
Use docker logs to monitor your reth and lighthouse nodes. The -f flag ensures you are following the log output
Test Reth RPC 🧪
Reth and Consensus client must be synced before testing.
openssl rand -hex 32 | sudo tee ~/reth/jwt.hex > /dev/null
sudo nano .env
EMAIL={YOUR_EMAIL} #Your email to receive SSL renewal emails
DOMAIN={YOUR_DOMAIN} #Domain of your reth node you set earlier, reth.indexerdao.com
WHITELIST={YOUR_REMOTE_MACHINE_IP} # Remote IP's allowed to connect to RPC