Sui Validator Node

Recommended Hardware: 24 vCPUs, 128 GB RAM, 4 TB of storage (NVME)

Install

Update packages and install necessary dependencies:

sudo apt update && sudo apt upgrade -y
sudo apt install -y curl git build-essential libssl-dev pkg-config libclang-dev cmake jq

Install Rust:

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

Install Sui Binaries

Clone the Sui repository:

git clone https://github.com/MystenLabs/sui.git
cd sui

Switch to the stable branch:

git checkout -b stable origin/stable

Build the binaries:

Add binaries to your PATH:


Configure the Validator

Download the validator configuration template:

Edit the configuration: Open the validator-template.yaml file and configure data paths, for example:

Download the genesis file:

Generate validator keys:

Initialize validator configuration:


Start the Validator

Run the validator manually:

Set up a systemd service for automated startup:

Add the following content:

Enable and start the service:


Join the Validator Network

Register as a validator:

  • Ensure your wallet (keys generated earlier) has sufficient SUI tokens.

  • Use the Sui CLI to deposit the stake:

Confirm registration: Once the stake is deposited, your node will become a validator in the next epoch.


Monitoring and Updates

Monitor logs:

Update the validator:

  • Stop the validator:

  • Update the code:

  • Restart the validator:

Last updated