Documentation ¶
Overview ¶
Package header contains functions working with block headers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConsensusData ¶
GetConsensusData returns the consensus data (nonce) of the given header. It uses `Neo.Header.GetConsensusData` syscall.
func GetHash ¶
GetHash returns the hash (256-bit BE value packed into 32 byte slice) of the given header (which also is a hash of the block). It uses `Neo.Header.GetHash` syscall.
func GetIndex ¶
GetIndex returns the index (height) of the given header. It uses `Neo.Header.GetIndex` syscall.
func GetMerkleRoot ¶
GetMerkleRoot returns the Merkle root (256-bit BE value packed into 32 byte slice) of the given header. It uses `Neo.Header.GetMerkleRoot` syscall.
func GetNextConsensus ¶
GetNextConsensus returns the next consensus field (verification script hash, 160-bit BE value packed into 20 byte slice) of the given header. It uses `Neo.Header.GetNextConsensus` syscall.
func GetPrevHash ¶
GetPrevHash returns the hash (256-bit BE value packed into 32 byte slice) of the previous block stored in the given header. It uses `Neo.Header.GetPrevHash` syscall.
func GetTimestamp ¶
GetTimestamp returns the timestamp of the given header. It uses `Neo.Header.GetTimestamp` syscall.
func GetVersion ¶
GetVersion returns the version of the given header. It uses `Neo.Header.GetVersion` syscall.