<p>As of block 210000, the total number of transactions in the chain is 9344662.</p>

<p>Version 0.8 of the reference client keeps track of this number, and reports it for every connected block in debug.log. I just copied the number from the debug.log of a node running pre-release code.</p>

CC BY-SA 3.0
2012-12-02T12:57:26.040Z
2012-12-02T12:57:26.040Z
Pieter Wuille
<p>From this JSON source, the totals can be computed:</p>

<ul>
<li><a href="http://blockchain.info/charts/n-transactions?format=json" rel="nofollow">http://blockchain.info/charts/n-transactions?format=json</a></li>
</ul>

CC BY-SA 3.0
2012-12-02T07:11:24.573Z
Thanks for the help, Stephen, but it appears that the data only goes back one year. Any other ideas?
Nick ODell
CC BY-SA 3.0
2012-12-02T02:45:12.133Z
2012-12-02T02:45:12.133Z
Stephen Gornick
<p>Building on Stephen's answer, here's a python script that will parse out the data and give you a total.<br>
There's an important problem, though. It will only load the last year of data.</p>

<pre><code>import urllib2
import json

url = "http://blockchain.info/charts/n-transactions?format=json"
page = urllib2.urlopen(url).read()
data = json.loads(page)['values']
data = map(lambda point: point['y'], data)
print int(sum(data))
</code></pre>

<p><a href="https://gist.github.com/4187550" rel="nofollow">Gist</a></p>

CC BY-SA 3.0
2012-12-02T07:09:41.513Z
2012-12-02T07:09:41.513Z
Nick ODell
<p><a href="http://blockchain.info/charts/n-transactions" rel="nofollow">This website</a> shows the number of bitcoin transactions per day, but I want to know how many there are total. How can I do this?</p>

<transactions>
How many transactions have been included into the blockchain?
Nick ODell
# How many transactions have been included into the blockchain?

(Asked by: username_0 on 2012-12-02)

[This website](http://blockchain.info/charts/n-transactions) shows the number of bitcoin transactions per day, but I want to know how many there are total. How can I do this?

**Tags:** transactions


---

## 3 answers

### Answer by username_1 on 2012-12-02. Score: 2 | Accepted answer

As of block 210000, the total number of transactions in the chain is 9344662.

Version 0.8 of the reference client keeps track of this number, and reports it for every connected block in debug.log. I just copied the number from the debug.log of a node running pre-release code.


---

### Answer by username_2 on 2012-12-02. Score: 1

From this JSON source, the totals can be computed:

* <http://blockchain.info/charts/n-transactions?format=json>

> **Comments:**
> **username_0**: Thanks for the help, Stephen, but it appears that the data only goes back one year. Any other ideas?  

---

### Answer by username_0 on 2012-12-02. Score: 0

Building on Stephen's answer, here's a python script that will parse out the data and give you a total.
There's an important problem, though. It will only load the last year of data.
import urllib2
import json

url = "http://blockchain.info/charts/n-transactions?format=json"
page = urllib2.urlopen(url).read()
data = json.loads(page)['values']
data = map(lambda point: point['y'], data)
print int(sum(data))

Gist


---

