Chain Setup Guide
Last updated
Last updated
This guide provides detailed steps to set up and run a node on the SPHX Testnet. By the end of this guide, you will have your node configured, connected to bootnodes, and running as a systemd service for easy management.
Before setting up the node, ensure you have:
A server or machine with the following minimum requirements:
2 CPU cores
4 GB of RAM
100 GB SSD storage
A stable internet connection
Basic command-line knowledge to execute commands and manage configurations.
Start by downloading and installing the latest version of SPHX binaries. You can find the most recent release .
For Linux, follow these steps:
Next, initialize the node with your desired moniker (node name):
This command will create the configuration files needed to run the node. The configuration files will be located in ~/.sphxd
.
Edit the config.toml
file located in ~/.sphxd/config/
to include the provided bootnodes. Use a text editor such as nano:
Find the persistent_peers
field and add the following bootnodes:
Make sure to also adjust the seeds
field if needed (this is optional if the bootnodes are working well).
Download the latest SPHX Testnet genesis file and place it in the configuration folder:
To ensure your node runs continuously and restarts automatically in case of a reboot or failure, you can create a systemd service file.
blockchain.service
FileCreate a new systemd service file by running:
Add the following content to the file:
Make sure to replace <your_user>
with your actual username.
After creating the service file, reload systemd and enable the service to start automatically:
Check the status of the service to ensure it’s running:
Once your node is running as a service, you can check its synchronization status using:
This will provide you with details about the current block height and whether your node is catching up with the network.
To monitor your node’s logs, use the following command:
This will provide a real-time view of the logs generated by your node. If any issues arise, you can troubleshoot by reviewing these logs.
System Security: Consider securing your server by using SSH key authentication, configuring a firewall, and monitoring resource usage.
Community and Support: Join the SPHX community for updates and assistance in case of issues.
Regular Updates: Make sure to periodically update your node software as new versions of SPHX are released to ensure compatibility with the latest network features.
By following these steps, your SPHX Testnet node should be up and running smoothly as a systemd service. If you encounter any issues or need further assistance, don’t hesitate to reach out to the community or consult the official documentation.