1. Install Dependencies

Before you begin, ensure that you have the necessary tools installed:

sudo apt update
sudo apt install -y git build-essential

Install Rust and Cargo if they are not already installed:

curl --proto '=https' --tlsv1.2 -sSf <https://sh.rustup.rs> | sh
source $HOME/.cargo/env

2. Clone the Repository

Clone the snarkOS repository:

git clone <https://github.com/AleoHQ/snarkOS.git>
cd snarkOS
git checkout mainnet-staging

3. Build and Install

Now build the project:

cargo build --release

4. Running the Node

Start the Node in Development Mode

To start a node in development mode, use the following command:

./target/release/snarkos start --nodisplay --dev 0

Example Commands for Different Node Types

Client Node:

./target/release/snarkos start --nodisplay --dev 0 --client

Prover Node: