Skip to content
This repository has been archived by the owner on Mar 15, 2021. It is now read-only.

Latest commit

 

History

History
168 lines (139 loc) · 2.99 KB

README.md

File metadata and controls

168 lines (139 loc) · 2.99 KB

profitability-service

Prerequisites

profitability-service requires nodejs, npm and optionally pm2 to run.

Installation

git clone https://github.com/felixbrucker/profitability-service
cd profitability-service
npm install
npm install pm2 -g

Run

pm2 start process.json

or

npm start

to startup on boot:

pm2 save
pm2 startup

Update software

run git pull

JSON template to query

{
	"algos": {
		"x11": {"hashrate":150000000, "supportsSSL": false},
		"x13": {"hashrate":150000000, "supportsSSL": false},
		"x14": {"hashrate":150000000, "supportsSSL": false},
		"x15": {"hashrate":150000000, "supportsSSL": false},
		"quark": {"hashrate":150000000, "supportsSSL": false},
		"qubit": {"hashrate":150000000, "supportsSSL": false}
	},
	"region": "eu",
	"name": "Baikal Mini Miner",
	"provider": ["nicehash"]
}

Hashrate is in Hash/sec, region can be one of these: ["eu","usa","hk","jp", "in", "br"] Provider is an array of valid providers: "nicehash", "miningpoolhub" or "minecryptonight"

JSON template for responses from the server

{
   "result":[
      {
         "algorithm":"x15",
         "profitability":0.0001148145,
         "stratum":"stratum+tcp://x15.eu.nicehash.com:3339",
         "isSSL":false,
         "provider":"nicehash"
      },
      {
         "algorithm":"x13",
         "profitability":0.000109995,
         "stratum":"stratum+tcp://x13.eu.nicehash.com:3337",
         "isSSL":false,
         "provider":"nicehash"
      },
      {
         "algorithm":"quark",
         "profitability":0.0000602235,
         "stratum":"stratum+tcp://quark.eu.nicehash.com:3345",
         "isSSL":false,
         "provider":"nicehash"
      },
      {
         "algorithm":"qubit",
         "profitability":0.000035963999999999997,
         "stratum":"stratum+tcp://qubit.eu.nicehash.com:3344",
         "isSSL":false,
         "provider":"nicehash"
      },
      {
         "algorithm":"qubit",
         "profitability":0.0000244755,
         "stratum":"stratum+tcp://hub.miningpoolhub.com:17014",
         "isSSL":false,
         "provider":"miningpoolhub"
      },
      {
         "algorithm":"x11",
         "profitability":0.0000057165,
         "stratum":"stratum+tcp://x11.eu.nicehash.com:3336",
         "isSSL":false,
         "provider":"nicehash"
      },
      {
         "algorithm":"x11",
         "profitability":0.000003963,
         "stratum":"stratum+tcp://hub.miningpoolhub.com:17007",
         "isSSL":false,
         "provider":"miningpoolhub"
      }
   ]
}

in case something is wrong/missing in the query:

{
	"result": false
}

complete list of supported algos

  • myriad-groestl
  • blake2s
  • cryptonight
  • daggerhashimoto
  • decred
  • equihash
  • groestl
  • keccak
  • lbry
  • lyra2re
  • lyra2rev2
  • lyra2z
  • neoscrypt
  • nist5
  • pascal
  • quark
  • qubit
  • scrypt
  • sha256
  • sia
  • skein
  • skunk
  • x11
  • x11gost
  • x13
  • x15
  • yescrypt

Todos

  • Add Code Comments
  • Write Tests

License

GNU GPLv3 (see LICENSE)