Show / Hide Table of Contents

Header Class

Represents the data structure of the block header.

Namespace: Neo.SmartContract.Framework.Services.Neo

Assembly: Neo.SmartContract.Framework

Syntax

public class Header: IScriptContainer

Attributes

NameDescription
ConsensusData Returns the consensus data for the block (generated by the consensus nodes)
Hash Returns the block hash
Index Returns the block height
MerkleRoot Returns the Merkle Tree root for all the transaction in the block
NextConsensus Returns the hash of the next bookkeeper
PrevHash Returns the hash of the previous block
Timestamp Returns the timestamp of the block
Version Returns the version of the block

Constructor

The Header object is constructed through Blockchain.GetHeader(byte[]) .

The Header object is constructed through Blockchain.GetHeader(uint) .