Build the core
Last updated
Was this helpful?
Last updated
Was this helpful?
Since the core is written on Node.js you should to install it. If you already have installed, we recommend checking the version. The recommended version is v21.4.0
Use official guides to install Node.js for your platform (Windows/Linux/Mac)
Some parts of KLY is written on Go(for example, PQC schemes), so you need to install it too. Use this guide to install Golang for your platform & architecture
Or, check if you already have Go
As a package manager for Node.js we use pnpm. To install it globally, run:
Now, clone the core repository
Now depending on your OS run the following commands:
Run a simple script
At this stage, the build process ends and the preparation of files for work begins.
Depending on the network you want to connect to, you will need an appropriate genesis file, as well as a set of configurations for your node.
To find the files that suit you, follow the instructions in the block:
PM2 is a production process manager for Node.js applications with a built-in load balancer. It allows you to keep applications alive forever, to reload them without downtime and to facilitate common system admin tasks.
PM2 allows you to manage and monitor a node/validator in production mode. So, you can simply start the node/validator via PM2 to:
Run the node as a background service - so you can close the console, close the SSH connection to server and node will work on background
Have access to logs stream to monitor node status
Here are some useful commands