Take the 2-minute tour ×
Bitcoin Stack Exchange is a question and answer site for Bitcoin crypto-currency enthusiasts. It's 100% free, no registration required.

This website shows the number of bitcoin transactions per day, but I want to know how many there are total. How can I do this?

share|improve this question
add comment

3 Answers

up vote 2 down vote accepted

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.

share|improve this answer
add comment

From this JSON source, the totals can be computed:

share|improve this answer
1  
Thanks for the help, Stephen, but it appears that the data only goes back one year. Any other ideas? –  Nick ODell Dec 2 '12 at 7:11
add comment

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.