Skip to content

Latest commit

 

History

History
94 lines (55 loc) · 1.81 KB

README.md

File metadata and controls

94 lines (55 loc) · 1.81 KB
  1. Global install

    npm install -g krypton-gaming-miner
    
    or
    
    npm --proxy http://localhost:1080 install -g krypton-gaming-miner
    npm --https-proxy http://localhost:1080 install -g krypton-gaming-miner
  2. Install from source

    git clone https://github.com/aitos-io/krypton-gaming-miner.git
       
    cd krypton-gaming-miner
    
    npm link
  3. Command usage

    • Configure the network

      Use the following command to set the network; you can choose either the testnet or the mainnet.

      game-cli network <name>

      name: The name should be either 'testnet' or 'mainnet', for example: game-cli network testnet.

    • Create a miner

      Note: The miner address above needs to be provided to the administrator, who will then register this address in the platform before onboard operations can be performed.

      game-cli gen -p 10

      -p :The parameter is optional, using kW as the unit, with a default value of 10kW.

    • View all miners

      game-cli ls
    • Delete a miner

      game-cli delete <minerAddress>

      minerAddress: The parameter is the address of the miner to delete.

    • miner onboard

      game-cli onboard <minerAddress> <ownerAddress>

      minerAddress: miner address

      ownerAddress: owner address

    • start miner

      After the miner starts successfully, all miners will report data at 15 minutes past the hour.

      game-cli start
      
    • stop miner

      After stopping, all miners will no longer report data.

      game-cli stop
      
    • View miner logs

      game-cli logs