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
  • Navigate to the script location:
  • Give Permission to Run the Script:
  • Run Machine Script:
  • See Logs:
  1. Nodes
  2. Provider Node Setup

Start a Machine

Navigate to the script location:

Use the cd command to navigate to the directory where the machine.js script is saved. (It will be inside the machine folder of the cloned directory). Repository for the provider and the machine is the same. If you were at the previous step then the command will be like:

cd ../machine/

Give Permission to Run the Script:

chmod +x start-machine.sh

Run Machine Script:

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

<WALLET ADDRESS> is the EVM address of the provider wallet. <PRIVATE_KEY> is the private key of the above wallet. <MACHINE_ID> is the id of the machine, that you get while adding the machine.

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

./start-machine.sh <WALLET_ADDRESS> <PRIVATE_KEY> <MACHINE_ID>

Example:

./start-machine.sh 0xF89860E37131c564F39862Aa42DD7c9Ed213198b 0x7f25c1f6658fd0b86d9d7a62736a7983c78ab3d0e45909947bb32dd1f1ff0778 1001

See Logs:

Run the following command to check the status:

pm2 status

Run the following command to check the logs:

pm2 logs 0
PreviousAdd a MachineNextValidator Node Setup

Last updated 9 months ago