Bitcoin Forum
November 10, 2024, 05:10:03 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Check your mining revenue - not just for P2Pool and solo mining anymore  (Read 2702 times)
salfter (OP)
Hero Member
*****
Offline Offline

Activity: 651
Merit: 501


My PGP Key: 92C7689C


View Profile WWW
September 19, 2012, 10:37:31 PM
Last edit: October 02, 2012, 07:35:06 PM by salfter
 #1

I knocked together a script to go through the transaction history for a given address, filter out the pool transactions, add them up, and chart them so you can more easily see what you're making:

For P2Pool or solo mining, use this type of URL:

http://alfter.us/income.php?addr=<your-bitcoin-address>

For other pools, use this type of URL:

http://alfter.us/income.php?addr=<your-bitcoin-address>&src=<pool-bitcoin-address>

The second address is where your pool receives its generated coins; you can get this from blockchain.info by digging back through the transaction history for recently-mined coin.  (For instance, Eclipse receives its generated coins at 1Baf75Ferj6A7AoN565gCQj9kGWbDMHfN9.)  A recursive search is done on transactions on your address to filter out those which can be traced back to your pool.  It's probably not perfect; for instance, coins sent to your address by someone else that originated at some point at the same pool will be counted.  

For a couple of examples, here's what I made with P2Pool:

http://alfter.us/income.php?addr=1N6UPydscNkUAL6ab1XaJ9i1hTV17EFr67

...and here's what I've gotten so far with Eclipse:

http://alfter.us/income.php?addr=1NgYDzGuHrJUmRSocfScYgBuGwsuvBB9Kz&src=1Baf75Ferj6A7AoN565gCQj9kGWbDMHfN9&simple=true

It will give you your total income to date (in BTC and $, the latter based on the current MtGox bid price) and graphs of the last 30 days' daily income and 30 weeks' weekly income.  Source information is from BlockExplorer and Blockchain.info.  
P2Pool and solo-mining results will come up much more quickly than results for other pools, due to the aforementioned recursive search.  

Update: Since the recursive-search feature is so slow that PHP can time out, you might have better luck appending "&simple=true" to your mining-pool query to disable it. So long as the only income at that address is mining income (no change received back from a transaction, no income from other sources), the graph will still be an accurate indication of mining income.  In this case, src can be any non-empty string.

Tipjars: BTC 1TipsGocnz2N5qgAm9f7JLrsMqkb3oXe2 LTC LTipsVC7XaFy9M6Zaf1aGGe8w8xVUeWFvR | My Bitcoin Note Generator | Pool Auto-Switchers: zpool MiningPoolHub NiceHash
Bitgem Resources: Pool Explorer Paper Wallet
Subo1977
Sr. Member
****
Offline Offline

Activity: 344
Merit: 250


Flixxo - Watch, Share, Earn!


View Profile
September 21, 2012, 09:35:42 PM
 #2

cool tool!!!! :-)

Can you add another Graph?
e.e. Daily stats for a Week, not a full month ?

If someone mines not a full month around the clock, the average ist not correct..


Thanks


Subo


X       ▄▄█████████▄▄
    ▄██▀▀         ▀▀██▄
  ▄██▀              ▀██▄
 ▄██     ██▄▄          ██▄
▄██      █████▄▄        ██▄
██       ████████▄▄      ██
██       ███████████▄    ██
██       ██████████▀     ██
▀██      ███████▀       ██▀
 ▀██     ████▀         ██▀
  ▀██▄   █▀          ▄██▀
    ▀██▄▄         ▄▄██▀
       ▀▀█████████▀▀
.flixxo    X▄████████████████████▄
██████████████████████
██████████████████████
████████████▀▀███████
█████▀████░░░░░░▄████
█████░░░░░░░░░░▄█████
█████▄░░░░░░░░░░██████
██████░░░░░░░░░███████
███████░░░░░░▄████████
████▄▄░░░░▄▄██████████
██████████████████████
██████████████████████
▀████████████████████▀
▄████████████████████▄
██████████████████████
█████████▀█▀██████████
██████▀▀▀▀▀████████
██████▄▄░░▄▄▄░░███████
████████░░███░░███████
████████░░░░░░▀███████
████████░░███▄░░██████
██████▀▀░░▀▀▀░░░██████
██████▄▄▄▄▄▄███████
█████████▄█▄██████████
██████████████████████
▀████████████████████▀
X[[]]X
BR0KK
Hero Member
*****
Offline Offline

Activity: 784
Merit: 500



View Profile
September 22, 2012, 06:14:48 PM
 #3

Nice website Smiley

doesnt work with pools (EMC)

salfter (OP)
Hero Member
*****
Offline Offline

Activity: 651
Merit: 501


My PGP Key: 92C7689C


View Profile WWW
September 22, 2012, 07:32:34 PM
 #4

cool tool!!!! :-)

Thanks!

Quote
Can you add another Graph?
e.e. Daily stats for a Week, not a full month ?

If someone mines not a full month around the clock, the average ist not correct..

The blue average line is generated by the graph package I'm using.  There's an option to disable it, but I think the better approach to take is to know when you have bad data that will throw off the average.  With mine, for instance, there's about a one-week interval before I first brought the 7750 online that I was off of P2Pool.  That's depressing the averages, but will scroll out of view before long.

A graph of the past week's activity wouldn't be much to add to it, though.

Tipjars: BTC 1TipsGocnz2N5qgAm9f7JLrsMqkb3oXe2 LTC LTipsVC7XaFy9M6Zaf1aGGe8w8xVUeWFvR | My Bitcoin Note Generator | Pool Auto-Switchers: zpool MiningPoolHub NiceHash
Bitgem Resources: Pool Explorer Paper Wallet
salfter (OP)
Hero Member
*****
Offline Offline

Activity: 651
Merit: 501


My PGP Key: 92C7689C


View Profile WWW
September 22, 2012, 07:42:03 PM
 #5

Nice website Smiley

doesnt work with pools (EMC)

I kinda figured it wouldn't.  That would require looking at all income to an address, not just generation income. If the source address for income from a given pool is constant, it might be feasible to filter on that.

Tipjars: BTC 1TipsGocnz2N5qgAm9f7JLrsMqkb3oXe2 LTC LTipsVC7XaFy9M6Zaf1aGGe8w8xVUeWFvR | My Bitcoin Note Generator | Pool Auto-Switchers: zpool MiningPoolHub NiceHash
Bitgem Resources: Pool Explorer Paper Wallet
salfter (OP)
Hero Member
*****
Offline Offline

Activity: 651
Merit: 501


My PGP Key: 92C7689C


View Profile WWW
September 28, 2012, 10:52:54 PM
 #6

doesnt work with pools (EMC)

I switched to Eclipse after having a bit of a dry spell with P2Pool, which gave me some motivation to fix the script to work with other pools.  It's a fair bit slower, but it works.  If we were to assume that all input to a given address is from a pool, I could ditch the recursive search and speed things up considerably.

Read the original post for details...it's been updated.

Tipjars: BTC 1TipsGocnz2N5qgAm9f7JLrsMqkb3oXe2 LTC LTipsVC7XaFy9M6Zaf1aGGe8w8xVUeWFvR | My Bitcoin Note Generator | Pool Auto-Switchers: zpool MiningPoolHub NiceHash
Bitgem Resources: Pool Explorer Paper Wallet
Tittiez
Hero Member
*****
Offline Offline

Activity: 686
Merit: 500



View Profile
September 29, 2012, 12:37:07 AM
 #7

http://alfter.us/income.php?addr=17yBNpXSTMDphLg2DTNVkYWjsH3WnDhVW6&src=1VayNert3x1KzbpzMGt2qdqrAThiRovi8

Doesn't seem to be working for me? (Deepbit)
salfter (OP)
Hero Member
*****
Offline Offline

Activity: 651
Merit: 501


My PGP Key: 92C7689C


View Profile WWW
September 29, 2012, 02:45:28 AM
 #8


PHP might be timing out. I can't say I'm 100% happy with the time it takes to run. I might need to find a faster way to do the recursive source verification. (I should probably set it to run against a bitcoind instance instead of Blockchain.info.)

Tipjars: BTC 1TipsGocnz2N5qgAm9f7JLrsMqkb3oXe2 LTC LTipsVC7XaFy9M6Zaf1aGGe8w8xVUeWFvR | My Bitcoin Note Generator | Pool Auto-Switchers: zpool MiningPoolHub NiceHash
Bitgem Resources: Pool Explorer Paper Wallet
salfter (OP)
Hero Member
*****
Offline Offline

Activity: 651
Merit: 501


My PGP Key: 92C7689C


View Profile WWW
October 02, 2012, 07:30:30 PM
 #9


Try this:

http://alfter.us/income.php?addr=17yBNpXSTMDphLg2DTNVkYWjsH3WnDhVW6&src=1VayNert3x1KzbpzMGt2qdqrAThiRovi8&simple=true

There's a new option that disables the recursive-descent validation.  The resulting graph will only be valid if the only income received at an address is mining income; if you've spent from the address and received change back to it, the numbers will be off.  If all you ever do is receive mining income and sweep it to another address every once in a while, it should work, and it's much faster.

Tipjars: BTC 1TipsGocnz2N5qgAm9f7JLrsMqkb3oXe2 LTC LTipsVC7XaFy9M6Zaf1aGGe8w8xVUeWFvR | My Bitcoin Note Generator | Pool Auto-Switchers: zpool MiningPoolHub NiceHash
Bitgem Resources: Pool Explorer Paper Wallet
Subo1977
Sr. Member
****
Offline Offline

Activity: 344
Merit: 250


Flixxo - Watch, Share, Earn!


View Profile
January 08, 2013, 08:27:38 AM
 #10

Hi,

your site has worked well for me until November, but since an income of zero is displayed, even though one is there.
This address is used for mining on P2pool and contains only generatet coins.

I use this link:
http://alfter.us/income.php?addr=16D2Qe2A2sEMgLxtgRSvLA6VVYWEJxo1mL

Can you help me?

X       ▄▄█████████▄▄
    ▄██▀▀         ▀▀██▄
  ▄██▀              ▀██▄
 ▄██     ██▄▄          ██▄
▄██      █████▄▄        ██▄
██       ████████▄▄      ██
██       ███████████▄    ██
██       ██████████▀     ██
▀██      ███████▀       ██▀
 ▀██     ████▀         ██▀
  ▀██▄   █▀          ▄██▀
    ▀██▄▄         ▄▄██▀
       ▀▀█████████▀▀
.flixxo    X▄████████████████████▄
██████████████████████
██████████████████████
████████████▀▀███████
█████▀████░░░░░░▄████
█████░░░░░░░░░░▄█████
█████▄░░░░░░░░░░██████
██████░░░░░░░░░███████
███████░░░░░░▄████████
████▄▄░░░░▄▄██████████
██████████████████████
██████████████████████
▀████████████████████▀
▄████████████████████▄
██████████████████████
█████████▀█▀██████████
██████▀▀▀▀▀████████
██████▄▄░░▄▄▄░░███████
████████░░███░░███████
████████░░░░░░▀███████
████████░░███▄░░██████
██████▀▀░░▀▀▀░░░██████
██████▄▄▄▄▄▄███████
█████████▄█▄██████████
██████████████████████
▀████████████████████▀
X[[]]X
salfter (OP)
Hero Member
*****
Offline Offline

Activity: 651
Merit: 501


My PGP Key: 92C7689C


View Profile WWW
January 08, 2013, 10:20:15 PM
 #11

your site has worked well for me until November, but since an income of zero is displayed, even though one is there.
This address is used for mining on P2pool and contains only generatet coins.

I use this link:
http://alfter.us/income.php?addr=16D2Qe2A2sEMgLxtgRSvLA6VVYWEJxo1mL

It looks like Block Explorer is timing out.  My script retrieves transaction info for your address from http://blockexplorer.com/q/mytransactions/16D2Qe2A2sEMgLxtgRSvLA6VVYWEJxo1mL; as of right now, that URL is returning nothing.http://blockexplorer.com/q/mytransactions/16D2Qe2A2sEMgLxtgRSvLA6VVYWEJxo1mL

Tipjars: BTC 1TipsGocnz2N5qgAm9f7JLrsMqkb3oXe2 LTC LTipsVC7XaFy9M6Zaf1aGGe8w8xVUeWFvR | My Bitcoin Note Generator | Pool Auto-Switchers: zpool MiningPoolHub NiceHash
Bitgem Resources: Pool Explorer Paper Wallet
bitpop
Legendary
*
Offline Offline

Activity: 2912
Merit: 1060



View Profile WWW
April 21, 2013, 12:59:46 PM
 #12

Love it

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!