Node Installation

Node Binary Installation

Download the node zip file from the following link.

wget https://github.com/Zetrix-Chain/zetrix/releases/download/1.0.1/ztxchain_1.0.1_linux_amd64_20231025.zip

Unzip the downloaded file to the /usr/local directory

unzip ztxchain_1.0.1_linux_amd64_20231025.zip -d /usr/local/

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

FolderDescription

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