Bitcoin Forum

Other => Beginners & Help => Topic started by: user1934 on April 20, 2013, 07:24:46 PM



Title: Get all bitcoin transactions ever
Post by: user1934 on April 20, 2013, 07:24:46 PM
Hi,

is it possible to get all transactions that ever took place? I know that all the data is stored in the 6GB bitcoin folder as LevelDB database (since 0.8). I can open it, but cannot make sense of the data that is inside. Is it similar to the JSON API that is described here:

http://blockchain.info/de/api/blockchain_api

Thanks!


Title: Re: Get all bitcoin transactions ever
Post by: deepceleron on April 20, 2013, 07:32:14 PM
I would suggest you look at utilities such as pynode or bitcointools, these will allow you to dump raw block info.

Code:
{"nonce": 118659259, "previousblockhash": "00000000c23d02f119cd02c894193ce12cb742ad4d0beb2dd417ce689665e7b7", "transactions": ["01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff0704ffff001d0164ffffffff0100f2052a01000000434104585a0555cff21330f6948ce47f8d55565a7169ca2a9a920af3e96aa03a416c27686101af2cbcadb2a2f291a188a053174be506408e2a6d5377dea99aba816fb8ac00000000"], "version": 1, "time": 1260910240, "bits": "1d00ffff"}
{"nonce": 195932600, "previousblockhash": "00000000f403170c9f19ef9eaccb0c536753fa8b71db2587d4379dae89cb8823", "transactions": ["01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff0704ffff001d012effffffff0100f2052a0100000043410449283bf37a5a58a6e7b533d66b2b850ce6cbeefe52dda4795b0108ceaffd5ef13e514fa82f4cbe5ea06de8a135b50edf37c7eaa3d3f4634673bdd21d837404d2ac00000000", "01000000015105844e432d30ca5dd7d5e1733d4c5f7cda5deb29f4f8de600fdc7a467659f5010000004a493046022100f427b49dd256a1cb908c2fa1eb910fcf36251912811fafbc22b98399c202175d022100e819a3991cea9fd4d54038ff7636b82db5b05bb81c4d16f95eead29839deabe201ffffffff0200e1f505000000004341049b5e721dc2a6baa3594632b79e0e28eca46b5898e6bfe1bc64b392e74439fcf5ca8d901fb0827b4143b1d9689c64120ab96c592296522314fab6b538eda08cb2ac0008af2f000000004341045e8ffc7d96e862e5a5d1ada9b2b428e743547d0167665b20c6636f475aff72f08c754be2a5acfda4854a1e8bccf8812876bc94e0a1b65c01a0d4d056911182bbac00000000"], "version": 1, "time": 1260912456, "bits": "1d00ffff"}



Title: Re: Get all bitcoin transactions ever
Post by: user1934 on April 21, 2013, 09:34:07 AM
Thanks!

Unfortunately it doesn't work with bitcoin clients > 0.8. I think I can downgrade to 0.72 to get bitcointools working again. Can I dump all transactions or just those that are linked to my wallet?


Title: Re: Get all bitcoin transactions ever
Post by: deepceleron on April 21, 2013, 12:28:24 PM
If you just want your wallet transactions, you can do that with Bitcoin-qt. Just go to the debug console and type help for a list of options (or read them here: http://we.lovebitco.in/command-reference/)