๐Ÿ‘ฉโ€๐Ÿ’ป
Galactica Network Dev Documentation
  • ๐Ÿ“™Galactica Network Overview
  • ๐ŸงฌGalactica Concepts
    • โ›“๏ธBlockchain Base
    • ๐ŸงพZero-Knowledge KYC
      • Holder Commitment
      • DApp specific HumanID
      • Verification SBT
      • KYC Guardian
      • Galactica Investigation Module
      • Privacy Precautions
    • ๐ŸŒŸReputation
    • ๐Ÿ›‚Contingent Transactions
  • โš™๏ธGalactica Components
    • ๐ŸฆŠGalactica Snap for Metamask
    • ๐ŸŒณRoot Contracts
  • ๐Ÿ—๏ธBuilding a Galactica DApp
    • Example DApps
      • Compliant ERC20
      • Cypherbook
      • Compliant DEX
      • Sybil resistant airdrop
    • Front End
      • Guided Example
        • Connect to Galactica Snap
        • Prepare ZK proof generation
        • Generate and submit ZK proof
        • Handle Verification SBTs
      • Galactica Snap JSON-RPC API
    • Smart Contracts
    • Custom Zero Knowledge Disclosures
  • ๐Ÿ“Guardian Guide
    • Setup to become a Guardian
    • Create and issue ZK certificate
      • ๐ŸชชzkKYC (GIP-1)
      • Arbitrary ZK data certificate (GIP-2)
      • X/Twitter ZK certificate (GIP-3)
      • REY X/Twitter Score ZK certificate (GIP-4)
      • Decentralised Exchange (DEX) ZK certificate (GIP-5)
      • Centralised Exchange (CEX) ZK certificate (GIP-6)
      • Telegram ZK certificate (GIP-7)
  • โ›๏ธValidator Guide
    • ๐Ÿ”งInstallation
    • ๐Ÿ”—Become a Validator
    • ๐Ÿš€galacticad CLI Usage Cheat Sheet
    • ๐Ÿ”’Security Best Practices
  • ๐ŸงชTestNet: Reticulum
    • Release Notes
  • ๐ŸงชDevNet: Andromeda
    • Release Notes
  • ๐Ÿ“ŽChangelog
Powered by GitBook
On this page
  • Preparing for Installation
  • Essential Build Tools
  • Installing Go
  • Installing galacticad
  • Running galacticad as a service
  • Next Steps

Was this helpful?

  1. Validator Guide

Installation

Welcome to the galacticad cli installation guide!

This step-by-step tutorial will guide you through installing the galacticad binary on your server, enabling you to participate in the testnet as either a Full Node or Validator.

Preparing for Installation

Before installing galacticad, ensure your system is ready by:

  1. Updating your system and installing essential build tools.

  2. Installing the Go programming language.

  3. Downloading and setting up the galacticad binaries.

โš ๏ธ WARNING: Make sure your server timezone configuration is UTC. Having a different timezone configuration may cause a LastResultsHash mismatch error. This will take down your node!

Essential Build Tools

First, make sure your system has the necessary tools for the build process:

  • For Ubuntu/Debian users:

sudo apt-get update
sudo apt-get install -y make gcc git build-essential curl tar jq
  • For RHEL/Centos/Rocky users:

sudo yum update
sudo yum groupinstall 'Development Tools'
sudo yum install -y curl jq

It's crucial to have curl, tar, git, and jq installed for the upcoming steps.

Installing Go

sudo rm -rf /usr/local/go
curl -sL https://go.dev/dl/go1.21.9.linux-amd64.tar.gz | sudo tar -x -z -C ~/
echo export PATH=\$PATH:\$HOME/go/bin >> ~/.bashrc
source ~/.bashrc

This command installs Go in your home directory, but you're free to choose another location.

Installing galacticad

Now, let's proceed to install galacticad:

git clone https://github.com/Galactica-corp/galactica.git
cd galactica
make install

The binary is installed to $GOPATH/bin by default. To change the installation path, use the BINDIR variable:

BINDIR=/usr/local/bin make install

Confirm the installation was successful:

galacticad version --long

You should see output detailing the build dependencies, SDK version, and more.

Running galacticad as a service

To add galacticad validator to linux systemd-units to autostart service with command below:

export GALACTICA_HOME=$(realpath ~/.galactica)
export CHAIN_ID=[Target Chain ID]

echo > /etc/systemd/system/galactica.service <<EOF
[Unit]
Description=Galactica Network Node
After=network-online.target
[Service]
  WorkingDirectory=$GALACTICA_HOME
  ExecStart=$(which galacticad) start --chain-id=$CHAIN_ID --home=$GALACTICA_HOME
  Type=simple
## uncomment if you want to run as a specific user and group
#   User=galactica
#   Group=galactica
  Restart=always
[Install]
  WantedBy=network.target
EOF
systemctl daemon-reload
systemctl enable --now galactica.service
systemctl status galactica.service

Replace [Target Chain ID] with the chain ID you want to run the node on.

Next Steps

PreviousValidator GuideNextBecome a Validator

Last updated 1 year ago

Was this helpful?

galacticad requires Go version 1.21 or later. For detailed installation instructions across different operating systems, refer to .

Security guidelines and best practices are essential for maintaining a secure node. Please refer to the for more information.

Congratulations! You've successfully installed the galacticad binary and are ready to . Explore the possibilities as a node operator in the Galactica Network and contribute to its growth and security.

โ›๏ธ
๐Ÿ”ง
the official Go documentation
Security Guide
become a validator