Skip to content
Charles Cao edited this page Mar 30, 2023 · 38 revisions

GPU Mining

Solo Mining

Generate your wallet

http://wallet.nbai.io

[Warning] Please remember your public key and store your keystore safely.

Windows

Start a local node

Download nbai node here(Please choose the latest version) https://github.com/nebulaai/nbai-node/releases

Choose gnbai-v1.0.0-windows.zip

open cmd

c:\user\nbai>"gnbai-v1.0.0-windows" -rpcaddr 127.0.0.1 --rpcport 8081 --rpc --mine --nbaibase <your wallet address>

Download etherminer

https://github.com/ethereum-mining/ethminer/releases/download/v0.16.1/ethminer-0.16.1-windows-amd64.zip

unzip the file and get the ethminer under bin open cmd cd to the bin folder

c:\user\nbai\bin> ethminer.exe http://127.0.0.1:8081

Ubuntu

Start a local node(Please choose the latest version)

wget https://github.com/nebulaai/nbai-node/releases/download/v1.0.0/gnbai-v1.0.0-ubuntu.tar.gz
tar -xzvf gnbai-v1.0.0-ubuntu.tar.gz
chmod +x gnbai-v1.0.0-ubuntu
./gnbai-v1.0.0-ubuntu -rpcaddr 127.0.0.1 --rpcport 8081 --rpc --mine --nbaibase <your wallet address>

Start ethminer

Download etherminer most recent release here

https://github.com/ethereum-mining/ethminer/releases/tag/v0.18.0

./ethminer -U -P getwork://127.0.0.1:8081

Mining With Mining Pool

Using http://aegispool.org as an example

Generate your wallet

http://wallet.nbai.io

[Warning] Please remember your public key and save your keystore safely

mining with T-Rex

Download T-Rex unzip the code, in the fold, create a script, nbai-aegispool.sh

#!/bin/sh
./t-rex -c config.txt

edit config.txt

  "pools": [
    {
      "user": "0xXXXXXXXXX", // wallet address (change it)
      "url": "stratum+tcp://aegispool.org:8008", // nbfs pool url
      "pass": "x", // password
      "worker": "%HOSTNAME%_rig0" // worker name
    }
  ],

// Name of mining algorithm. You can see available names at the top of the help file.
  "algo": "ethash",

save it.

Make nbai-aegispool.sh executable

chmod +x nbai-aegispool.sh
./nbai-aegispool.sh

FAQ

Q: I cannot sync up the node

A: You can manually add the peers

./gnbai-v1.0.0-ubuntu attach ./node1/geth.ipc

After enter the terminal, please enter:

admin.addPeer("enode://609ef69eace9793125a284d178a362d8f53d83591537f582c2c2b73ce42dca69ba371d4d253ef300efee1ae81b666a0dfc29d47ef5536e7713d1f47ee85c0fd6@18.215.32.172:30332");
admin.addPeer("enode://61e8a477bdb61e09fc10f43a0a9a139f73282d04ea8f8b4bf341694cc1abb26fdea732dddf1e2d25bb76794edecd5d901d1512c7604dd1279faf78737b3c54fd@18.211.182.244:30332");

Clone this wiki locally