Title: block header parsing question from live blockchain Post by: ggbtctalk000 on April 12, 2023, 06:26:11 AM After years of interruption, I am studying internals of bitcoin again, starting with block header format. I wanna see in real life, from blockchainfo info, I can see contents of certain blocks in a web formatted output, but nowhere seen the block header.
Is there a way to see block header from live public block chain? Any utility? Following options are fine for me: 1. Using some utility dump header 2. Using some utility fetch (from public chain) entire block including block header write my own parser. Thanks Title: Re: block header parsing question from live blockchain Post by: Sha256explorer on April 12, 2023, 07:45:14 AM I suggest to take a look at this: https://bitcointalk.org/index.php?topic=5448305.0
Title: Re: block header parsing question from live blockchain Post by: un_rank on April 12, 2023, 08:53:19 AM Not entirely certain that Blockchair[1] would give you the information you need, but it is a tool I use when I want to get some information about the current or next block[2].
[1] https://blockchair.com/ [2] https://blockchair.com/bitcoin/block/785043 - Jay - Title: Re: block header parsing question from live blockchain Post by: ggbtctalk000 on April 12, 2023, 06:31:36 PM You can use Bitcoin Core to obtain that data. Here's an example, Code: $ getblockhash 700000 Although if you don't want to download whole Bitcoin blockchain, you could just get raw block data from block explorer and extract raw block header manually. YES that is what i did, in windows. I think i will do it in linux later for easier. I see in windows, it does download lot of blockchain files in *.data format although i am still not sure how those *dat files are organized. My end goal is to be able to parse whole block. |