Post
Topic
Board Bitcoin Discussion
Re: Bitcoin Block Explorer
by
bitcool
on 09/02/2011, 04:27:28 UTC
It eliminates spent outputs. The total value of unspent outputs should equal the total BTC in circulation (as it does).

The LEFT JOIN matches each output with the input that spent it. If inputs IS NULL for a row, then the output is unspent.

I intend to release my getblock-to-SQL script at some point in the far future, since it allows easy access to stats like this. It's much too messy right now, though.
This is really cool, knowing this, I'll be able to sleep much better. thanks a bunch.