GAN Chain Documentation
  • Introduction
  • Barrels of Compute Guide
    • Barrel of Compute FAQ
  • $GPU Tokenomics
    • $GPU Genesis Nodes
    • $GPU Agentic Compute
    • Deflation
    • Distribution
    • Utility
    • Daily Emissions
      • Distribution
      • Emission Rate
  • GAN Chain
    • Node Structure
    • Chain Architecture
    • GAN Consensus Mechanisms
      • Proof of Authority
      • Proof of Availability
      • Proof of Compute
      • GPU Benchmarking
  • Nodes
    • Validator Node Licensing
    • Total Supply
    • Pricing
    • Provider Node Setup
      • Add a Provider Node
      • Add a Machine
      • Start a Machine
    • Validator Node Setup
      • Creating an SS58 Address
      • Adding the Validator Node
      • Adding the SS58 account to explorer
      • Running the Validator Node
      • Adding Validator in the Explorer
    • Queen Staking Setup
    • Network Rewards
      • Health Score
      • Compute Score
      • Node score
      • Staking Score
      • Reward Calculator
  • Smart Contracts
    • GPU.sol
    • Rewards.sol
  • Issuance or Minting
  • Rent gpu
  • Subnets
Powered by GitBook
On this page
  • Clone the setup from our GitHub Repository:
  • Navigate to the script location:
  • Install Node Js and NPM:
  • Install Required Packages:
  • Run AddMachine Script:
  1. Nodes
  2. Provider Node Setup

Add a Machine

PreviousAdd a Provider NodeNextStart a Machine

Last updated 8 months ago

Clone the setup from our GitHub Repository:

Clone this github repository via the following command:

git clone https://github.com/brahmGAN/ganchain-provider-setup-v2.git

Navigate to the script location:

Use the cd command to navigate to the directory where the add_machine.js script is saved. (It will be inside the add_machine folder of the cloned directory). Repository for the provider and the machine is the same.

cd ganchain-provider-setup-v2/add_machine/

Install Node Js and NPM:

Run the following command in your terminal to install node js and npm if they are not already installed.

command -v npm >/dev/null 2>&1 || (curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash - && sudo apt-get install -y nodejs)

Install Required Packages:

npm install

Run AddMachine Script:

Note: Replace <WALLET_ADDRESS> & <PRIVATE_KEY> with your specific values

<WALLET ADDRESS> is the EVM address of the provider wallet. <PRIVATE_KEY> is the private key of the above wallet.

Replace all of the above in the following command and run it:

node add_machine.js -w "<WALLET_ADDRESS>"  -p "<PRIVATE_KEY>"

Example:

node add_machine.js -w "0xF89860E37131c564F39862Aa42DD7c9Ed213198b"  -p "0x7f25c1f6658fd0b86d9d7a62736a7983c78ab3d0e45909947bb32dd1f1ff0778"

Wait for the above command to run completely, it can take 2 to 30 minutes depending on your GPU type. Finally you will get the following message (if the script runs successfully):

"Drill Test Complete, machineId: <Your_Machine_Id>" **Keep this machine id intact for the next step.**

https://github.com/brahmGAN/ganchain-provider-setup-v2.git