Parse the bitcoin blockchain into a postgresql database.
This tool is not complete, and is still a work in progress.
This program uses the Bitcoin .dat file format to parse the blockchain into a postgresql database for easier querying. This program parses Transactions, and Blocks into four postgresql tables called transactions, blocks, inputs, and outputs.
This program parses binary files on your harddrive. It won't auto-update, or be aware of new incoming transactions. You will have to re-run the program once those blocks have been added to your .dat files. In other words, this is for historical (non-realtime) data only.
You will need to provide an argument with a link to your directory which contains these files. They look like this: blk00000.dat, blk00001.dat, etc.
If you're using Bitcoin QT, the .dat files can be located in these locations:
Linux:
~/.bitcoin/
MacOS:
~/Library/Application Support/Bitcoin/
Windows:
%APPDATA%\Bitcoin
Pull requests are welcome and encouraged
-data The path to your .dat file (blocks) directory
-user Your postgresql database user