Author

Topic: [ANN][CALCULATOR] PHP Mining Income Calculator - MIT License, API built-in (Read 620 times)

sr. member
Activity: 280
Merit: 250
Bitnation Development Team Member
Hi guys, I've released a mining profit calculator written in PHP. It can be used as a front-end to a website with a simple templating system (as shown here on my X11 profit calculator site), and provides a built-in JSON API. It supports two types of data collection - daemon RPC and external Abe-based block explorers for those of you who want to host it on a service that doesn't provide you the ability to run the cryptocoin daemons themselves. Both configuration options are given in the example config files.

It also has full Google Analytics support for the web front-end built-in.

It also has fully configurable data caching to avoid overburdening either local or wide network connections.

Portable to any coin

It's a pretty simple process to add a new coin... Just add the new coin to the app's main configuration file configure an adaptor and exchanges in the config files, implement a SubsidyFunction class for the coin (can easily be ported from the coin's original source as shown by the examples for Hirocoin, Darkcoin and Limecoin). It's all in the documentation anyway.

Use cases

This software could be used very easily for profit-switching multipools as it contains a built-in API. You can do this by configuring separate instances for each different algorithm, and configuring each instance with the subsidy functions and daemon RPC login information for every coin on your list. Just use the GET parameter fmt=json to get the output in machine-readable format. It will respond with a "Content-type: application/json" header in this case.

Usage



Here's some examples using my X11 calculator:

1Mh/s Web Front End

1Mh/s API

300kh/s Web Front End

300kh/s API
Jump to: