Bitcoin Forum
June 25, 2024, 11:37:39 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Sincerely/Urgently need your help: How to use Bitcoin Parser?  (Read 179 times)
Tony642 (OP)
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
February 06, 2019, 01:04:12 AM
 #1

I'm a freshman of bitcoin system and I'm trying to find out how to use bitcoin parser. I downloaded several from internet but they were not work out. Currently I am using Bitcoin Knots wallet and downloaded all blockchains (approx.223GB). I know those data are preserved in the file names blockchain and they are in the form like blk0xxxx.dat. But how to parse those files? I really want to know the answer! Huh
nc50lc
Legendary
*
Offline Offline

Activity: 2450
Merit: 5734


Self-proclaimed Genius


View Profile
February 06, 2019, 06:17:14 AM
Merited by dbshck (4), ABCbits (1), joniboini (1)
 #2

What is your goal on checking the contents of the blocks?

There are couple of sites with already parsed data:
If it was the ASCII texts embedded in the blockchain, all of them were already parsed here: https://bitcoinstrings.com/
If it was the block headers and/or transaction data (in hex or readable format), you can check them out here: https://webbtc.com/ <- however, the site isn't updated to the latest height (till 443888 only) but can be converted to HEX: ex. https://webbtc.com/block/0000000000000000000cdc0d2a9b33c2d4b34b4d4fa8920f074338d0dc1164dc.hex

I downloaded several from internet but they were not work out.
Most of those parser won't work with blocks from 477,120 (inaccurate, somewhere around blk00950.dat) to the latest.
Those are the blocks containing SegWit data.

█▀▀▀











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











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
ABCbits
Legendary
*
Offline Offline

Activity: 2912
Merit: 7587


Crypto Swap Exchange


View Profile
February 06, 2019, 06:49:23 PM
Merited by joniboini (1)
 #3

Which tools you used? If those tools are updated before August 2018, most likely it doesn't work because they don't support parse block/transaction contain/use SegWit.

Have you tried https://github.com/alecalve/python-bitcoin-blockchain-parser, https://github.com/chainside/btcpy or https://github.com/bitcoinjs/fast-dat-parser? all of them are updated after August 2018 and 2 of them claim to support SegWit

? I never use it, but it already support block/transaction contain/use SegWit.

But how to parse those files? I really want to know the answer! Huh

Aside from using tools/library, your only choice is learn about LevelDB (where as Bitcoin Core have it's own fork/version of LevelDB) and find out how Bitcoin Core use LevelDB then write your own tool/library

█▀▀▀











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











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
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!