Bitcoin Forum
February 21, 2019, 05:04:32 PM *
News: Latest Bitcoin Core release: 0.17.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Sincerely/Urgently need your help: How to use Bitcoin Parser?  (Read 77 times)
Tony642
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
Your Bitcoin transactions
The Ultimate Bitcoin mixer
made truly anonymous.
with an advanced technology.
Mix coins
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1550768672
Hero Member
*
Offline Offline

Posts: 1550768672

View Profile Personal Message (Offline)

Ignore
1550768672
Reply with quote  #2

1550768672
Report to moderator
1550768672
Hero Member
*
Offline Offline

Posts: 1550768672

View Profile Personal Message (Offline)

Ignore
1550768672
Reply with quote  #2

1550768672
Report to moderator
1550768672
Hero Member
*
Offline Offline

Posts: 1550768672

View Profile Personal Message (Offline)

Ignore
1550768672
Reply with quote  #2

1550768672
Report to moderator
nc50lc
Full Member
***
Offline Offline

Activity: 504
Merit: 200


Self-proclaimed Genius ㊙️


View Profile WWW
February 06, 2019, 06:17:14 AM
Merited by dbshck (4), ETFbitcoin (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.

ETFbitcoin
Legendary
*
Online Online

Activity: 1596
Merit: 1555

Use SegWit and enjoy lower fees.


View Profile WWW
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

Pages: [1]
  Print  
 
Jump to:  

Bitcointalk.org is not available or authorized for sale. Do not believe any fake listings.
Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!