Software developers

Are you a software developer and want your software to be compatible with NiceHash? Here are a few simple things you need to know.

NiceHash Simple Multi-Algorithm Mining

We have designed Simple Multi-Algorithm Mining for two reasons:

Benefits of Simple Multi-Algorithm Mining over previous versions are the following:

How does it work? How should it work in mining software in the optimal way?

  1. Query our HTTP API to get information about profitability.
  2. Decide which algorithm is the most profitable.
  3. If already mining the most profitable algorithm, wait 60 seconds and go to 1.
  4. Establish a connection for mining the most profitable algorithm and wait for work (job).
  5. Unload previous work (old algorithm) and prepare for the new algorithm (new job).
  6. Mine the new algorithm (new job).
  7. Go to 1.

Steps 1 and 2 are already implemented by us. In mining software, only trivial steps from 3 to 7 needs to be implemented.

C function to get information about profitability and decide on the most profitable algorithm can be found in our GitHub repository.

Mining software needs to use the appropriate NiceHash stratum URL when switching the algorithm. URLs follow the scheme stratum+tcp://[algo_name].[location][algo_port] as you can see here. Use the name of the algorithm in lower case and one of the following locations: eu, usa, jp, hk.

We recommend the mining software to perform a benchmark of algorithms to detect the appropriate factors (speeds), thus relieving miners from setting factors manually.

Support for subscribe.extranonce


Other relevant and important stuff