TheSerapher/php-mpos — pull request #1391 by raistlinthewiz (2014-01-13 22:06:39+00:00)
Title: Added two brand new api calls; getblockstats and getpoolinfo

getblockstats return the basic block stats. sample response:

```
{
"getblockstats": {
"version": "1.0.0",
"runtime": 243.1480884552,
"data": {
"Total": 7847,
"TotalValid": "7724",
"TotalOrphan": "123",
"TotalDifficulty": 3447.74598482,
"TotalShares": "13543526",
"TotalEstimatedShares": 14121968,
"TotalAmount": 38689.998624,
"1HourTotal": "49",
"1HourValid": "48",
"1HourOrphan": "1",
"1HourDifficulty": 15.4275624,
"1HourShares": "59964",
"1HourEstimatedShares": 63191,
"1HourAmount": 240.3,
"24HourTotal": "851",
"24HourValid": "837",
"24HourOrphan": "14",
"24HourDifficulty": 315.26808561,
"24HourShares": "1547872",
"24HourEstimatedShares": 1291338,
"24HourAmount": 4194.84,
"7DaysTotal": "3421",
"7DaysValid": "3356",
"7DaysOrphan": "65",
"7DaysDifficulty": 1284.64018074,
"7DaysShares": "6459944",
"7DaysEstimatedShares": 5261886,
"7DaysAmount": 16829.148624,
"4WeeksTotal": "7847",
"4WeeksValid": "7724",
"4WeeksOrphan": "123",
"4WeeksDifficulty": 3447.74598482,
"4WeeksShares": "13543526",
"4WeeksEstimatedShares": 14121968,
"4WeeksAmount": 38689.998624,
"12MonthTotal": "7847",
"12MonthValid": "7724",
"12MonthOrphan": "123",
"12MonthDifficulty": 3447.74598482,
"12MonthShares": "13543526",
"12MonthEstimatedShares": 14121968,
"12MonthAmount": 38689.998624
}
}
}
```

getpooinfo returns pool info from pool config.
* currency
* coinname
* cointarget
* coindiffchangetarget
* algorithm
* stratumport
* payout_system
* min_ap_threshold
* max_ap_threshold
* txfee
* fees

Both api's requires api-key to function.

Also updated pools.md :)