Node Installation

Node Binary Installation

Download the node .tar.gz file from the following link.

For mainnet:

wget https://github.com/Zetrix-Chain/zetrix/releases/download/1.0.2/mainnet_1.0.2_linux_amd64.tar.gz

For testnet:

wget https://github.com/Zetrix-Chain/zetrix/releases/download/1.0.2/testnet_1.0.2_linux_amd64.tar.gz

You can checkout our latest release here, where you can also get .zip packages.

tar -xzf mainnet_1.0.2_linux_amd64.tar.gz -d /usr/local/

After extracting the file, a new folder named "ztxchain" will appear at /usr/local directory. The folder contains few other sub folders.

Folder
Description

bin

Node executable binary (ztx and ztxd)

config

Configuration file for the node (ztx.json)

coredump

Crash debugging log

data

Node storage database location

jslib

Extra library

log

Running and error logs

scripts

Script to run executable binary as service

Deploy Sync Node With Automated P2P Address Generation

Navigate to the "scripts" folder.

cd /usr/local/ztxchain/scripts

To run the node, execute the "ztx" script as shown below.

./ztx start

Check the node status, the status should display the node is running.

./ztx status

Make sure to open P2P port (18001), API port (18002) and Websocket port (18003). The ports can be changed from configuration file (ztx.json).

If you deploy the node from within your home network router, please make sure to do port forwarding on the router to allow inbound connection for these ports.

Last updated