<p><a href="https://github.com/gavinandresen/bitcointools/" rel="nofollow">Gavin Andresen's bitcointools</a> python scripts might have some of the functionality you are looking for.</p>

CC BY-SA 3.0
2014-08-05T19:19:23.080Z
From README: "These tools are becoming obsolete as we move away from using Berkeley DB in
Bitcoin-Qt/bitcoind."
odigity
CC BY-SA 3.0
2012-08-31T20:43:03.473Z
2012-08-31T20:43:03.473Z
kirian
<p>This can be done with some degree of effort using the Bitcoin API.</p>

<p>v0.7 getrawtransaction gives you <a href="https://bitcointalk.org/index.php?topic=89725.msg990497#msg990497" rel="nofollow">access to transactions</a> even those not in your wallet.</p>

<ul>
<li><a href="http://en.bitcoin.it/wiki/Raw_Transactions" rel="nofollow">http://en.bitcoin.it/wiki/Raw_Transactions</a></li>
</ul>

<p>There are other tools that you can use to build this capability as well.</p>

<ul>
<li>libBitcoin</li>
<li>Armory (see <a href="https://github.com/etotheipi/BitcoinArmory/tree/master/extras" rel="nofollow">Extras</a>)</li>
<li>Bitcoin ABE </li>
<li>BitsOfProof supernode [pre-release]</li>
</ul>

CC BY-SA 3.0
2013-05-10T23:20:36.410Z
The v0.8 client uses LevelDB so I'm not sure that it changes any of the above.  Anyone?
Stephen Gornick
CC BY-SA 3.0
2012-08-31T20:38:44.383Z
2013-03-07T08:44:14.523Z
2013-03-07T08:44:14.523Z
Stephen Gornick
<p>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?</p>

CC BY-SA 3.0
2012-08-31T20:37:02.983Z
possible duplicate of [Monitor all transactions on bitcoin network - API](http://bitcoin.stackexchange.com/questions/4265/monitor-all-transactions-on-bitcoin-network-api)
Stephen Gornick
CC BY-SA 3.0
2012-08-31T21:14:47.967Z
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
<blockchain><development>
How can I read information from the blockchain?
Shamoon
# How can I read information from the blockchain?

(Asked by: username_0 on 2012-08-31)

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?

**Tags:** blockchain, development

> **Comments:**
> **username_1**: possible duplicate of [Monitor all transactions on bitcoin network - API](http://bitcoin.stackexchange.com/questions/4265/monitor-all-transactions-on-bitcoin-network-api)  
> **username_2**: 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).  

---

## 2 answers

### Answer by username_1 on 2012-08-31. Score: 6 | Accepted answer

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

v0.7 getrawtransaction gives you [access to transactions](https://bitcointalk.org/index.php?topic=89725.msg990497#msg990497) even those not in your wallet.

* <http://en.bitcoin.it/wiki/Raw_Transactions>

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

* libBitcoin
* Armory (see [Extras](https://github.com/etotheipi/BitcoinArmory/tree/master/extras))
* Bitcoin ABE
* BitsOfProof supernode [pre-release]

> **Comments:**
> **username_1**: The v0.8 client uses LevelDB so I'm not sure that it changes any of the above.  Anyone?  

---

### Answer by username_3 on 2012-08-31. Score: 2

[Gavin Andresen's bitcointools](https://github.com/gavinandresen/bitcointools/) python scripts might have some of the functionality you are looking for.

> **Comments:**
> **username_4**: From README: "These tools are becoming obsolete as we move away from using Berkeley DB in Bitcoin-Qt/bitcoind."  

---

