Bitcoin Forum
May 21, 2024, 08:31:46 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: A standalone blockchain parser. The simpliest parser that has been ever maded.  (Read 350 times)
coder0x15 (OP)
Jr. Member
*
Offline Offline

Activity: 36
Merit: 3


View Profile
June 19, 2018, 12:19:18 PM
Last edit: August 17, 2019, 12:54:44 AM by coder0x15
 #1

I found this script somewhere in reddit.
It makes me busy and happy with my explorations of blockchain.
The script is f**n slow, but he track byte-to-byte structure of raw dumps of bitcoin blockchain.
It is a pseudocode script that can parse whole raw dumps of blockchain.
In now time it realised in Python, but structure of the code is great for rescripting it to at any other languages.
I think it will be usefull for BT users to check it.
May be you want to explore blockchain as pure as you need. So that is what you need.
Here it is -> https://github.com/ragestack/blockchain-parser
hash-pool.eu
Jr. Member
*
Offline Offline

Activity: 56
Merit: 1


View Profile
June 19, 2018, 12:57:04 PM
 #2

Sounds interesting but I don't understand what it is for. Could you more elaborate what the idea of this script is?

Can I parse the blk*.dat files with it? This would be quite interesting.

★ PRiVCY ➢ Own Your Privacy! ➢ Best privacy crypto-market! ★
✈✈✈[PoW/PoS]✅[Tor]✅[Airdrop]✈✈✈ (https://privcy.io/)
coder0x15 (OP)
Jr. Member
*
Offline Offline

Activity: 36
Merit: 3


View Profile
June 19, 2018, 01:01:29 PM
 #3

Can I parse the blk*.dat files with it?

Yes.
butka
Full Member
***
Offline Offline

Activity: 434
Merit: 246


View Profile
June 21, 2018, 04:55:52 PM
 #4

The script is f**n slow, but he track byte-to-byte structure of raw dumps of bitcoin blockchain.
It is a pseudocode script that can parse whole raw dumps of blockchain.
For users that are not familiar with the details of your python implementation (like me), I think it would be useful if you explained a little bit about how to use they script. Is it enough just to run the provided python code, like this:
Code:
python blockchain-parser.py
or you have to provide something as an input to the script?
TryNinja
Legendary
*
Offline Offline

Activity: 2842
Merit: 7040


Crypto Swap Exchange


View Profile WWW
June 21, 2018, 05:03:41 PM
Merited by butka (1), coder0x15 (1)
 #5

~
Open the file in your notepad and edit the var "dirA" and "dirB" to the directory where the blk*.dat files are stored and the directory where you want to save the parsing results (respectively).

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
butka
Full Member
***
Offline Offline

Activity: 434
Merit: 246


View Profile
June 21, 2018, 05:18:28 PM
 #6

~
Open the file in your notepad and edit the var "dirA" and "dirB" to the directory where the blk*.dat files are stored and the directory where you want to save the parsing results (respectively).
Thanks a lot. I was going to try the code but didn't know where to start. You saved me the trouble of figuring that out.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!