How can I read information from the blockchain?

12

3

I don't want to use an existing service, like Blockchain.info or BlockExplorer.com. Is there some library out there that will let me read the blockchain programatically?

Shamoon

Posted 2012-08-31T16:08:55.160

Reputation: 2 689

1

possible duplicate of Monitor all transactions on bitcoin network - API

Stephen Gornick 2012-08-31T20:37:02.983

Depends a lot on what kind of information you want. Raw blockchain data (such as which block contains which transactions), or derived information which requires indexes and processing (such as how which coins are available to which address).Pieter Wuille 2012-08-31T21:14:47.967

Answers

6

This can be done with some degree of effort using the Bitcoin API.

v0.7 getrawtransaction gives you access to transactions even those not in your wallet.

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

  • libBitcoin
  • Armory (see Extras)
  • Bitcoin ABE
  • BitsOfProof supernode [pre-release]

Stephen Gornick

Posted 2012-08-31T16:08:55.160

Reputation: 26 118

1The v0.8 client uses LevelDB so I'm not sure that it changes any of the above. Anyone?Stephen Gornick 2013-05-10T23:20:36.410

2

Gavin Andresen's bitcointools python scripts might have some of the functionality you are looking for.

kirian

Posted 2012-08-31T16:08:55.160

Reputation: 3 179

1From README: "These tools are becoming obsolete as we move away from using Berkeley DB in Bitcoin-Qt/bitcoind."odigity 2014-08-05T19:19:23.080