Create a non-root user:
sudo adduser hlnode
sudo usermod -aG sudo hlnode
su - hlnode
Download configuration files:
curl <https://binaries.hyperliquid.xyz/Testnet/initial_peers.json> > ~/initial_peers.json
echo '{"chain": "Testnet"}' > ~/visor.json
curl <https://binaries.hyperliquid.xyz/Testnet/non_validator_config.json> > ~/non_validator_config.json
curl <https://binaries.hyperliquid.xyz/Testnet/hl-visor> > ~/hl-visor
chmod a+x ~/hl-visor
Install dependencies:
sudo apt update
sudo apt install screen
Run the node: Use a screen session to run the node in the background:
screen -S hlnode
~/hl-visor
To detach from the screen session, press Ctrl + A + D
.
Monitor the node:
To check the storage used by the node:
du -hs hl
You can also inspect the data folder:
cd ~/hl/data && ls
Reattach to the session: If you need to return to the session, use:
screen -r hlnode