Bitcoin Forum
May 24, 2024, 12:17:56 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [ANN][CALCULATOR] PHP Mining Income Calculator - MIT License, API built-in  (Read 602 times)
n00bnoxious (OP)
Sr. Member
****
Offline Offline

Activity: 280
Merit: 250

Bitnation Development Team Member


View Profile
April 21, 2014, 08:21:18 AM
Last edit: April 21, 2014, 08:33:25 AM by n00bnoxious
 #1

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
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!