GAN Chain Documentation
  • Introduction
  • On Demand GPU's
    • Developer Docs
    • Credits
  • GAN CHAIN L1
    • Chain Architecture
    • Node Structure: The Three Pillars of Decentralized Compute
    • GAN Consensus Mechanisms
      • Proof of Authority
      • Proof of Availability
      • Proof of Compute
      • GPU Benchmarking
    • Validator Node Setup
      • Creating an SS58 Address
      • Adding a Validator Node on GAN CHAIN
      • Adding Your SS58 Account to GANscan Explorer
      • Running the Validator Node on GAN Chain
      • Adding Validator in the Explorer
    • Queen Staking Setup on GAN Chain
    • Block Rewards
  • Subnets
  • Barrels of Compute Guide
    • Barrel of Compute FAQ
  • $GPU Token Launch
    • Tokenomics
  • Quests
  • Investor Docs
Powered by GitBook
On this page
  • Step 2: Setup Docker APT Repository
  • Step 3: Install Docker Engine and Plugins
  • Step 4: Add Your User to Docker Group
  • Step 5: Run the Validator Node
  • Step 6: Check Your Node Logs
  • Part 1: Generate Keys Using author_rotateKeys
  • Part 2: Register as Validator in GANscan
  1. GAN CHAIN L1

Validator Node Setup

Running the Validator Node on GAN Chain

Ready to run your Validator Node? Just follow these simple terminal commands one-by-one, and you’ll be validating the GAN CHAIN network in no time!

Step 1: Install Docker

Before running the node, you need to have Docker installed. Let’s start by removing any conflicting packages that might interfere:

for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; do sudo apt-get remove $pkg; done

Step 2: Setup Docker APT Repository

Add Docker’s official GPG key and set up the repository on your Ubuntu system:

# Add Docker's official GPG key:

sudo apt-get update

sudo apt-get install ca-certificates curl

sudo install -m 0755 -d /etc/apt/keyrings

sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc

sudo chmod a+r /etc/apt/keyrings/docker.asc

# Add the repository to Apt sources:

echo \

"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \

$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \

sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

sudo apt-get update

Step 3: Install Docker Engine and Plugins

Now install Docker Engine along with necessary CLI tools and plugins:

sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

Step 4: Add Your User to Docker Group

This allows you to run Docker commands without sudo.

sudo groupadd docker

sudo usermod -aG docker $USER

Important: Log out and log back in (or restart your terminal session) to apply group changes. You can logout by running:

logout

Step 5: Run the Validator Node

With Docker ready, execute this command to download and start your GAN CHAIN Validator Node:

wget https://github.com/brahmGAN/ganchain-v2/releases/download/v2.0.0/gpunet_node.sh ; sudo chmod +x gpunet_node.sh ; ./gpunet_node.sh

Step 6: Check Your Node Logs

To verify that your node is running smoothly, check the logs with:

docker logs GPUNetValidator

This will display the output and status of your Validator Node container.

Adding Your Validator to the GANscan Explorer

After running your GAN CHAIN validator node, the final step is to register it on the blockchain via the GANscan Explorer so it can start participating in consensus and earning rewards.

Part 1: Generate Keys Using author_rotateKeys

To link your validator to the network, you need to generate session keys from your validator node.

Step 1: Run the Key Generation Command

On the same machine where your validator node is running, execute the following command:

This command will return a JSON object like:

{

"jsonrpc": "2.0",

"result": "0x1234abcd...your-key...",

"id": 1

}

Copy the value from the "result" field. This is your validator session key save it securely, you’ll need it shortly.

Part 2: Register as Validator in GANscan

Now that you have your session key, you can add your validator to the GAN CHAIN staking system through the GANscan explorer.

Step 2: Navigate to the Staking Dashboard

  • Make sure your SS58 account is connected via the Polkadot{.js} extension

Step 3: Add Validator

  • Click on the ➕ Validator icon (labelled "Validator" with a plus symbol).

  • In the pop-up window:

    • Select your SS58 account from the dropdown.

    • Enter the amount you want to bond (minimum: 100 GPoints).

  • Click Next.

Step 4: Paste Session Key

  • In the next window, find the field labelled “keys from rotateKeys”.

  • Paste the session key you generated earlier (0x... format).

Step 5: Click Bond & Validate.

  • Sign and Submit the transaction using your Polkadot{.js} wallet.

After successful submission:

  • Your validator will appear in the Pending Validators list.

It will begin producing blocks and earning rewards starting from the next era. One Era = 24 hours

PreviousGPU BenchmarkingNextCreating an SS58 Address

Last updated 1 day ago

docker exec -it GPUNetValidator curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "author_rotateKeys", "params":[]}'

Open

http://localhost:9933
https://ganscan.gpu.net/#/staking/actions