Author

Topic: Need easier way to find Transactions (Read 1932 times)

member
Activity: 110
Merit: 11
August 23, 2013, 07:00:58 PM
#2
I would recommend: https://github.com/jtobey/bitcoin-abe which then dumps everything into a database (PostgreSQL, MySQL's InnoDB engine, and SQLite).  You can then query that database for everything you need or run the web server and query that.

Its Linux based so if you want to do this in Windows just setup a Linux Virtual machine with Vmware or Virtual Box for running Abe.

full member
Activity: 144
Merit: 100
August 21, 2013, 11:31:50 PM
#1
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 command.  I would iterate over all the tx's using JSON getrawtransaction .  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?
Jump to: