⚒️Installation

Stargaze Mainnet guide

Hardware Requirements

Node Type
CPU
RAM
Storage

Mainnet

4

8 GB

200GB (SSD or NVME)

Server preparation

  1. Update your system packages:

sudo apt update && sudo apt upgrade -y
  1. Install essential dependencies:.

sudo apt install curl tar wget clang pkg-config libssl-dev jq build-essential bsdmainutils git make ncdu gcc git jq chrony liblz4-tool -y
  1. Install Go 1.23.1 (required for building Stargaze):

ver="1.23.1"
wget "https://golang.org/dl/go$ver.linux-amd64.tar.gz"
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf "go$ver.linux-amd64.tar.gz"
rm "go$ver.linux-amd64.tar.gz"
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile
source $HOME/.bash_profile
go version

Build Stargaze Node

  1. Clone Stargaze Git repository:

  1. Checkout the desired version:

  1. Build the Stargaze node:

  1. Check the version:

Expected output:

  • version: 15.0.0-beta.3-testnet

  • commit: d69fb6b0d47c4b4c03906880375c03b51fbb44cb


Node Initialization

  1. Set your moniker (validator name) by replacing <moniker> with your desired name:

  1. Configure the chain ID:


Create / recover wallet

  1. Create a new wallet:

  1. Or recover an existing wallet:


Download genesis and addrbook

  1. Download Genesis and Addrbook files:

  1. Verify the integrity of the Genesis file:

Expected output:

  • 3b6b974f3b882b0ff94366169c4e598810ba4774f389c2816d9acb2fb71200b4


Setup Peers

  1. Edit the configuration to include a peer (use the BlockPro peer in this example):


Pruning (optional)

Pruning helps reduce the storage size of the node. You can set it up as follows:

  1. Enable pruning and set values:


Create a Systemd Service File

  1. Create and configure the systemd service to run Stargaze as a service:

  1. Reload and start the Stargaze service:


Create validator

  1. Create your validator by replacing the placeholders with your values:

Delete node

  1. Stop the Stargaze service:

  1. Remove systemd service:

  1. Remove the Stargaze node and data:

Last updated