Bitcoin Forum
April 25, 2024, 02:37:47 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Server, ala blockchain.info...how?  (Read 1077 times)
truckingeek (OP)
Newbie
*
Offline Offline

Activity: 34
Merit: 0


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?
1714055867
Hero Member
*
Offline Offline

Posts: 1714055867

View Profile Personal Message (Offline)

Ignore
1714055867
Reply with quote  #2

1714055867
Report to moderator
1714055867
Hero Member
*
Offline Offline

Posts: 1714055867

View Profile Personal Message (Offline)

Ignore
1714055867
Reply with quote  #2

1714055867
Report to moderator
There are several different types of Bitcoin clients. The most secure are full nodes like Bitcoin Core, which will follow the rules of the network no matter what miners do. Even if every miner decided to create 1000 bitcoins per block, full nodes would stick to the rules and reject those blocks.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714055867
Hero Member
*
Offline Offline

Posts: 1714055867

View Profile Personal Message (Offline)

Ignore
1714055867
Reply with quote  #2

1714055867
Report to moderator
1714055867
Hero Member
*
Offline Offline

Posts: 1714055867

View Profile Personal Message (Offline)

Ignore
1714055867
Reply with quote  #2

1714055867
Report to moderator
rjk
Sr. Member
****
Offline Offline

Activity: 448
Merit: 250


1ngldh


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

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: 2506
Merit: 1010


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

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

Unichange.me

            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █


jim618
Legendary
*
Offline Offline

Activity: 1708
Merit: 1066



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

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:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!