0

I am currently thinking of doing a research project on Bitcoins. I want to download the list of all transactions of bitcoins. I was wondering what are the ways to do this? I believe I can scrape, but is there a better and faster way to do this?

Martin Thoma
  • 306
  • 1
  • 11
bawa
  • 1
  • 1
  • 1

5 Answers5

3

If you're looking for all BTC balances, this github repository looks useful. It would likely crash due to memory issues, but could show you all transactions using the "transactions" argument. https://github.com/znort987/blockparser

Nicolas Lopez
  • 426
  • 2
  • 5
3

There is a new tool by a Princeton research group that does exactly this: https://github.com/citp/BlockSci

Benedikt Bünz
  • 586
  • 1
  • 3
  • 8
2

The list of all transactions is the blockchain. The fastest way to get the blockchain is to run a full node which will download the blockchain for you and provide ways for you to access the data stored within the blockchain.

You can use Bitcoin Core and enable the transaction index so that you can get all transaction information. The transaction index is enabled by adding txindex=1 to your bitcoin.conf file.

Andrew Chow
  • 67,209
  • 5
  • 76
  • 149
  • How do you recommend I run a full node? I am sorry, I am completely new to blockchain/bitcoin etc. I do know Python well though so any guidance would be appreciated – bawa Feb 23 '18 at 10:56
  • Downloaded bitcoin core. Downloading all the transactions. Could you actually guide me, how I could import all of it (once its downloaded) into a sort of a csv file or maybe in a data frame in python? – bawa Feb 23 '18 at 11:09
  • 1
    You can use the JSON-RPC interface to connect to Bitcoin Core and send commands that fetch the blockchain data for you. Then you can put that into whatever format you want and handle it however you want. This library may be helpful to you: https://github.com/jgarzik/python-bitcoinrpc – Andrew Chow Feb 23 '18 at 15:57
0

If you already download (sync) the full blockchain database with Bitcoin Core, the fastest way to get the full list of all transactions is to use blockchain parser.

This script parses raw blockchain database which is stored in blk******.dat files and can extract all the data. If you need just TX hashes, you can leave only them as output information and just comment all the fields that you don't need to be in the output text files.

This is the most easiest way to do what you need.

Denis Leonov
  • 915
  • 12
  • 26
-2

Download the bitcoin core bootstrap.dat

Most downloads are compressed to save on download time.

Update: Here's the torrents. https://getbitcoinblockchain.com/