- A machine/instance with a publicly exposed IP address (E.g. from a cloud service provider).
- 100GB of hard drive space is recommended (this should be enough for several years of data).
- All ports should be open for outbound TCP traffic.
- You will need to open a port of your choice for inbound TCP traffic (the HTTP API will be served on that port).
You will also need to install the
lisk-dex-http-api module on your node - To do this, you should navigate to your node's main directory using the
cd command (typically
Once inside, you will need to install the module using this command:
You will need to open your node's
config.json file (inside your main
Inside this file, you should find a field called
modules which is an array of module objects.
You will need to add a module to serve the HTTP API for your existing DEX module.
After you've copied this object inside your
config.json file, you need to change 3 properties/values:
port: This is the port on which to serve the HTTP API. Make sure that this port is exposed to the public internet (directly or indirectly through a proxy or iptables port redirect) - It's strongly recommended that each DEX market aim to use a unique HTTP port and that participants of the same DEX market use the same port.
foowith the relevant blockchain symbol)
foowith the relevant blockchain symbol) - This needs to point to the module name of the DEX market on your node.
You can start the node using PM2:
If you get any errors, make sure that you don't have an existing node already running. If you do, you can shut it down using
pm2 delete ldem-node.
You should check the logs using the following command:
Depending on your log level, you may see a lot of messages which indicate that your node is catching up with the network. If you see a lot of error messages, it could be an indication that something went wrong. Compare your logs with existing DEX market participants to verify that your node is running correctly.
Ctrl + C to stop reading the logs.