3

Does anyone understand what each element of a block header represents? I have an example block header represented here:

[

cd7bd64fba4cc782fe5474d3640882afece5887180591e72f80ce6916cf73526,

1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347,

f927a40c8b7f6e07c5af7fa2155b4864a4112b13,

30430d24554454b251003be3d027dea94397bf45cd34c6a06abcfec662242046,

56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421,

56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421,

00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,

3b32b8463f,

1780,

1388,

"",

55ba9f2d,

"Geth/v1.0.0/linux/go1.4.2",

437fa41b15c73334a947241ec885423a487d4401a0c3ec7c30550c1e039bccd7,

c5317acb884dfc49,

]

What do each of these elements represent? Is there an official source that also definitively says what each of these values mean?

  • 1
    Possible duplicate of : ethereum.stackexchange.com/questions/268/… – Florian Castelain Nov 22 '17 at 1:49
  • Thanks @Andromelus, I believe this article is useful, but I don't believe I can derive what each of these values are from this post. I was hoping for a little more clarity about what each of these values represent. This article provides a pool of values that might apply to each of these but I do not know which order or which calculations to perform on them such as the date to get these values: Prev Hash, Nonce, Timestamp, Uncles Hash, Beneficiary, Logs Bloom, Difficulty, Extra data, Block Num, Gas Limit, Gas Used, MIx Hash, State Root, Transaction Root, Receipt Root. – Fortune Nov 22 '17 at 2:02
4

You can find the block header's structure in the Yellow paper, 4.4 (page 5).

I don't have time to go through eveyrthing, but if I do not make any mistake, for example, you could bind the following:

cd7bd64fba4cc782fe5474d3640882afece5887180591e72f80ce6916cf73526 --> Parent hash

1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347 --> ommersHash

f927a40c8b7f6e07c5af7fa2155b4864a4112b13 --> beneficiary

30430d24554454b251003be3d027dea94397bf45cd34c6a06abcfec662242046 --> stateRoot

56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421 --> transactionsRoot

56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421 --> receiptsRoot

00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 --> logsBloom

3b32b8463f --> difficulty

1780 --> Number of ancestor blocks

1388 --> gasLimit

"" --> gasUsed

55ba9f2d --> timestamp

"Geth/v1.0.0/linux/go1.4.2" --> ExtraData

437fa41b15c73334a947241ec885423a487d4401a0c3ec7c30550c1e039bccd7 --> mixHash

c5317acb884dfc49 --> nonce

From what I read of your example, this matches pretty well.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.