Bitcoin Blockchain Parser to get all block headers

0

I am looking for on-line or off-line run Bitcoin Blockchain Parser to get all block headers only

All I need is

########## Block Header ##########
Version:         1
Previous Hash    00000000000000000000000000000000
Merkle Root    4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b
Time             1231006505
Difficulty       1d00ffff
Nonce            2083236893

No transactions data.

darius

Posted 2018-01-08T04:54:25.880

Reputation: 55

Answers

1

I share a small Python script that can parse off-line the data which is stored in blk*.dat files.

You can try it here.

If you want, you can turn-off the strings savings that you does not need.

Denis Leonov

Posted 2018-01-08T04:54:25.880

Reputation: 640

Thank you Denis, your Python script looks great and highly professional. Following the last collapse in bitcoin and cryptos I have lost any hope, recovery to ever come, but studying blocks in the blockchain still makes me busy and happy. First of all I need to extract nonce for all bloks to let me verify if some services, publishing individual block headers don't cheat us. An old bug was to have any block header generated with nonce preset to "0". Thank you once again. There is an old problem in stackexchange logging in if Bitcoin is your first login site. Email refers to SE and login fails. – darius – 2018-06-14T17:22:43.330

@darius what do you mean An old bug was to have any block header generated with nonce preset to "0"? – Denis Leonov – 2018-06-19T09:34:28.413

– darius – 2018-06-20T23:50:02.463