Skip to content

21Hzzzz/hash-cli-miner

 
 

Repository files navigation

HASH256 GPU Miner

HASH256 proof-of-work CLI miner using NVIDIA CUDA GPU.

RTX 4090 Test Result: ~4.6 GH/s

Nuggets

keccak256(challenge || nonce) < difficulty

Contract Address (Ethereum mainnet): 0xAC7b5d06fa1e77D08aea40d46cB7C5923A87A0cc

Installation

Requirements: Node.js, CUDA Toolkit (nvcc), NVIDIA Drivers

git clone https://github.com/fanqieBTC/hash256-cli.git
cd hash256-cli
npm install
npm run assets
npm run build:cuda

Other GPU builds (default sm_89 is for RTX 4090):

CUDA_ARCH=sm_86 sh build-cuda.sh   # RTX 3090
CUDA_ARCH=sm_80 sh build-cuda.sh   # A100

Configuration procedures

cp .env.example .env
nano .env
HASH256_RPC_URL=https://rpc.mevblocker.io/fast
PRIVATE_KEY=0xYourPrivateKey

Usage

Check on-chain status:

node hash256-cli.js status

Benchmark:

node hash256-cli.js bench --engine cuda --seconds 10

Mining (submitting transactions):

node hash256-cli.js mine --engine cuda --submit --loop

Mining without submitting:

node hash256-cli.js mine --address 0xYourAddress --engine cuda --loop

Ubuntu Server (systemd)

cp .env.example .env && nano .env
bash scripts/install-linux-service.sh
journalctl -u hash256-miner -f

Stop

sudo systemctl stop hash256-miner
# or
pkill -f hash256-cuda-miner

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 54.4%
  • Cuda 36.9%
  • Shell 8.7%