OK, it took more like 20 minutes to run through the whole block chain. Goes really fast through those tens of thousands of blocks with no transactions.
1. Download bitcoindays.py
2. Drop it in the same directory as bitcointools.
3. Run it for a single block:
python bitcoindays.py --block=125635
Run it for a range of blocks (if either start or end are specified):
python bitcoindays.py --block-start=125000 --block-end=125999
Run it for the entire block chain:
python bitcoindays.py > bitcoindays.csv
When run on the entire block chain, it will show a progress indicator on screen.
The CSV contains two columns, the block height, and the accumulated bitcoindays for all the transactions in that block.
4. Send me lots of bitcoins. 183g7trsCxkug8C8zAxR6Ro3qnLnoDLFo7
# Copyright (c) 2011 Michael Hampton
# Copyright (c) 2010 Gavin Andresen
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
I'm in for 3BTC if it tracks BitcoinDays over time and updates with each block. Good for a month.
I don't think this is doable with bitcointools since it requires bitcoin to be offline. As I said before, this sort of thing should be added to Block Explorer or an equivalent. Or perhaps done via JSON-RPC to a running bitcoind.