|
August 22, 2013, 04:31:50 AM |
|
Greetings Bitcoin developers:
I am starting a project that tracks the value in and out of a subset of addresses. I want to get timing for when a transaction has an output to an address and also when that transaction is redeemed. None of these have the private key in the wallet.
Something like BlockExplorer.com would be a great source for that data, but I am trying to accomplish this without going over the internet.
Initially I though that the JSON interface to the satoshi client had this data available, but it does not appear so.
Here are my options as I see them:
1. Whenever I am looking for a new address, I could start at the genisis block, and pull in each block using the JSON getblock <blockhash> command. I would iterate over all the tx's using JSON getrawtransaction <transhash>. In each transaction I would check for the private keys I am looking for. I expect this would be an arduous operation, for all 10 GB or so.
2. I could incorporate some of the Armory BlockUtils.cpp code to scan the blockchain at the disk level. This is also a large undertaking. I might be trading off large resource requirements for increased speed.
Is there something I am overlooking? Is there an easier way to find transactions with specific public keys named?
|