Bitcoin Forum

Bitcoin => Project Development => Topic started by: truckingeek on July 26, 2012, 12:00:30 AM



Title: Server, ala blockchain.info...how?
Post by: truckingeek on July 26, 2012, 12:00:30 AM
I love what blockchain.info is doing, it seems like a really great service.  I'd like to make my own, at least generally along those lines, probably just for my own gits and shiggles.  Entirely PHP, entirely FOSS, simple and clean.

How on Earth do I go about getting and parsing the blockchain without using a wallet?  Preferably all in PHP?  Any ideas?  Once retrieved and turned into discrete transactions, I'd like to stuff the whole thing into a sql database, and after that point it's really pretty simple to manhandle the data however it wants to be.  But getting to the point of the entire transaction history in a db...I'm stumped.

Help?


Title: Re: Server, ala blockchain.info...how?
Post by: rjk on July 26, 2012, 03:04:42 AM
You might want to start with ABE: https://en.bitcoin.it/wiki/Abe


Title: Re: Server, ala blockchain.info...how?
Post by: Stephen Gornick on July 26, 2012, 04:13:23 AM
Once retrieved and turned into discrete transactions, I'd like to stuff the whole thing into a sql database, and after that point it's really pretty simple to manhandle the data however it wants to be.  But getting to the point of the entire transaction history in a db...I'm stumped.


The bitcoind RPC gives getblock/gettransaction.  See the new stuff in 0.7 as well:
 - http://bitcointalk.org/index.php?topic=89725.0

There are other tools that you can use to build this capability as well.

 - libBitcoin
 - Armory (see Extras) http://github.com/etotheipi/BitcoinArmory/tree/master/extras
 - Bitcoin ABE
 - BitcoinJS
 - BicoinJ


Title: Re: Server, ala blockchain.info...how?
Post by: jim618 on July 26, 2012, 09:11:58 AM
You might want to check with the author of blockchain.info (piuk on this forum) what licensing he has on the blockchain.info code to see if you can base what you want to do on it.

The project itself is on github:
https://github.com/zootreeves/blockchain.info (https://github.com/zootreeves/blockchain.info)