Can someone please post a sample of the output from the WafflePool wallet API (
http://wafflepool.com/api/miner?address=XXXXXXXX) for an addresses that has been mined to.
I'm trying to integrate WafflePool into
Miner Control. I haven't mined to this pool yet so when I put in an address like this:
http://wafflepool.com/api/miner?address=1PMj3nrVq5CH4TXdJSnHHLPdvcXinjG72y
I get back this:
{"error":"Address not found!"}
{"scrypt":{"hashrate":0,"hashrate_str":"0.00 kH\/s","stalerate":0,"stalerate_str":"0.00 kH\/s","workers":[],"balances":{"sent":0,"confirmed":0,"unconverted":0}},"nscrypt":{"hashrate":0,"hashrate_str":"0.00 kH\/s","stalerate":0,"stalerate_str":"0.00 kH\/s","workers":[],"balances":{"sent":0.00177243,"confirmed":0,"unconverted":0}},"x11":{"hashrate":808137,"hashrate_str":"808.14 kH\/s","stalerate":0,"stalerate_str":"0.00 kH\/s","workers":{"1KSTYGj25RRQ5i1GNVUGTjUsSyZr4uSPiz_R9":{"hashrate":808137,"stalerate":0,"str":"808.14 kH\/s","last_seen":1412611329}},"balances":{"sent":0.02127437,"confirmed":0.00039378,"unconverted":2.220345987e-7}},"x13":{"hashrate":0,"hashrate_str":"0.00 kH\/s","stalerate":0,"stalerate_str":"0.00 kH\/s","workers":[],"balances":{"sent":0,"confirmed":0,"unconverted":0}}}
Not really usefull for Minercontrol. Would be better if we could get api to return value in
http://wafflepool.com/stats Oh, this is very useful for MinerControl. I'm already parsing the output from the stats call to get earnings per algo. The piece I'm asking about here is for the balance numbers. Here is the same result reformatted by jsonlint.com for easier reading.
{
"scrypt": {
"hashrate": 0,
"hashrate_str": "0.00 kH/s",
"stalerate": 0,
"stalerate_str": "0.00 kH/s",
"workers": [],
"balances": {
"sent": 0,
"confirmed": 0,
"unconverted": 0
}
},
"nscrypt": {
"hashrate": 0,
"hashrate_str": "0.00 kH/s",
"stalerate": 0,
"stalerate_str": "0.00 kH/s",
"workers": [],
"balances": {
"sent": 0.00177243,
"confirmed": 0,
"unconverted": 0
}
},
"x11": {
"hashrate": 808137,
"hashrate_str": "808.14 kH/s",
"stalerate": 0,
"stalerate_str": "0.00 kH/s",
"workers": {
"1KSTYGj25RRQ5i1GNVUGTjUsSyZr4uSPiz_R9": {
"hashrate": 808137,
"stalerate": 0,
"str": "808.14 kH/s",
"last_seen": 1412611329
}
},
"balances": {
"sent": 0.02127437,
"confirmed": 0.00039378,
"unconverted": 2.220345987e-7
}
},
"x13": {
"hashrate": 0,
"hashrate_str": "0.00 kH/s",
"stalerate": 0,
"stalerate_str": "0.00 kH/s",
"workers": [],
"balances": {
"sent": 0,
"confirmed": 0,
"unconverted": 0
}
}
}
One thing I like here is that we have hashrate and balance per algorithm. Only NiceHash/WestHash gave me that previously. I'm not too happy seeing numbers like this: "2.220345987e-7". Hopefully the C# JSON parser handles this format correctly. It did pass the JSONLint so that is a good sign.
Now, a question. There are three numbers: sent, confirmed, unconverted. I want to see if I understand this correctly:
- sent - BTC transferred from the pool to the address.
- confirmed - BTC earned and converted.
- unconverted - approximate BTC of unconverted coins.
Based on this it looks like a person's current balance would be "confirmed + unconverted" although the amount ready for payout is only "confirmed".
Does this sound correct?