Bitcoin Forum
December 09, 2016, 07:44:00 PM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Server, ala blockchain.info...how?  (Read 876 times)
truckingeek
Jr. Member
*
Offline Offline

Activity: 34


View Profile
July 26, 2012, 12:00:30 AM
 #1

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?

If this post totally rocked your socks, you can donate to1BEoHyMZ3VmFiQiFAaw3iAdNT6Zdjdp1Rm
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1481312640
Hero Member
*
Offline Offline

Posts: 1481312640

View Profile Personal Message (Offline)

Ignore
1481312640
Reply with quote  #2

1481312640
Report to moderator
1481312640
Hero Member
*
Offline Offline

Posts: 1481312640

View Profile Personal Message (Offline)

Ignore
1481312640
Reply with quote  #2

1481312640
Report to moderator
gweedo
Legendary
*
Offline Offline

Activity: 1246


Java, PHP, HTML/CSS Programmer for Hire!


View Profile WWW
July 26, 2012, 12:43:45 AM
 #2

https://en.bitcoin.it/wiki/Block_chain_download here, but since php isn't not and application it self, it would have to use cron jobs to check for a new block ~1-~2 mins so your keeping up. Also you need to send binary and while java, and python make that easy with byte primitive type, i think binary can only be stored in a string in php. Good Luck, but it is going to be hard. you need nested mysql.

Want to earn 2500 SATOSHIS per hour? Come Chat and Chill in https://goseemybits.com/lobby
rjk
Sr. Member
****
Offline Offline

Activity: 420


1ngldh


View Profile
July 26, 2012, 03:04:42 AM
 #3

You might want to start with ABE: https://en.bitcoin.it/wiki/Abe

Mining Rig Extraordinaire - the Trenton BPX6806 18-slot PCIe backplane [PICS] Dead project is dead, all hail the coming of the mighty ASIC!
Stephen Gornick
Legendary
*
Offline Offline

Activity: 2002



View Profile
July 26, 2012, 04:13:23 AM
 #4

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

jim618
Legendary
*
Offline Offline

Activity: 1708



View Profile WWW
July 26, 2012, 09:11:58 AM
 #5

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

MultiBit HD   Lightweight desktop client.                    Bitcoin Solutions Ltd   Bespoke software. Consultancy.
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!