Header
The section describes the block header object.

Overview

The header is an data structure that describes a block. It includes information about the block, the transactions contained in the block, the current state of the chain in which the block belongs to.

Structure

Field
Type
Description
creatorPubKey
String
The public key of the block creator.
difficulty
HexNumber
The difficulty of the block.
totalDifficulty
HexNumber
The cumulative difficulty of all blocks in the chain.
nonce
HexNumber
The nonce discovered during PoW computation.
number
HexNumber
The block's number.
parentHash
String
The hash of the parent block.
stateRoot
String
The merkle hash of the state tree.
transactionsRoot
String
The merkle root of transactions in the block.
timestamp
HexNumber
The unix timestamp of when the block was created.
extra
[32]HexByte
Extra data for future use.

Example

1
{
2
"creatorPubKey": "48YQpehoRDYsivCbnedrz19DfTvh345PwWAKGN3jdUjPNdG3Lte",
3
"difficulty": "0x989680",
4
"extra": "0x",
5
"nonce": "0x61879fb427b56cef",
6
"number": "0x2",
7
"parentHash": "0x211df3aed05b45d620850f40c9b4eac006da7ee0f76a7fa99d5ac16a2c2ca42c",
8
"stateRoot": "0xc222870b2ca3f71d30b8d06b8e3f633812a8c0473cecc38b6fcc12eb5cad89ec",
9
"timestamp": "0x5bda0ad4",
10
"totalDifficulty": "0x1312d00",
11
"transactionsRoot": "0x0000000000000000000000000000000000000000000000000000000000000000"
12
}
Copied!
Copy link