Xoken Nexa Installation

Installation

Download the pre-compiled binary from here and unzip contents at an appropriate directory of your choice. 

Note: It should work fine on the popular Linux distributions. If you are out of luck, please follow instructions here to compile from source.

The Xoken Nexa server can be started as below, with the network name argument ('bsv' for Mainnet)

$ xoken-node -n bsv 

Optional arguments are as below. Do expect very verbose logging with Debug mode. And it is recommended running with '-u' once the node is almost done syncing the blockchain.

Usage: xoken-node [-n|--net bsv|bsvtest|bsvstn] [-d|--debug] [-u|--unconfirmedTx]
Configure

On the very first startup, a unique config.yaml file will be auto-generated. Edit this file to configure the 'listenIP', 'tcpPort' & 'udpPort' fields appropriately, the default localhost listen interface need change, while the default ports are fine. We dont recommend changing any of the other fields, unless you understand the implications. Restart the server for changes to take effect.

Backup keys

Once the server has started successfully, open the newly generated config.yaml file and safely backup the application generated secret key. This is essential to restore the unique identity of your node, since nodes maintain the reputation of their peers.

e.g. 
secretKey: d670be193389c79349edd8ea4194925609f39cbeffc59b78fc1b4d431c0ebac

To keep processes running even after exiting the shell or terminal, you can use the nohup command or can configure it as a systemd service and use below template to execute as a daemon service.

sudo systemctl <start|stop> <node-service-name>