Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • BlockHeader

Index

Constructors

constructor

  • new BlockHeader(internalTxCount?: number): BlockHeader

Properties

Protected _consensusMemberCount

_consensusMemberCount: number

Protected Optional _currentVersion

_currentVersion: undefined | number

Protected Optional _delay

_delay: undefined | number

Protected Optional _extend

_extend: Buffer

Protected _height

_height: number

Protected _internalTxCount

_internalTxCount: number

Protected Optional _mainVersion

_mainVersion: undefined | number

Protected _merkleHash

_merkleHash: Hash

Protected _packingIndexOfRound

_packingIndexOfRound: number

Protected Optional _percent

_percent: undefined | number

Protected _preHash

_preHash: Hash

Protected _roundIndex

_roundIndex: number

Protected _roundStartTime

_roundStartTime: number

Protected _signature

_signature: Buffer

Protected Optional _stateRoot

_stateRoot: Buffer

Protected _time

_time: number = new Date().getTime()

Protected _txCount

_txCount: number

Methods

getDigest

getHash

getHeight

  • getHeight(): number

getMainVersion

  • getMainVersion(): number

getTxCount

  • getTxCount(): number

setInternalTxCount

  • setInternalTxCount(count: number): void

sign

  • sign(privateKey: string): this

size

  • size(): number

toBytes

  • toBytes(): Buffer

toObject

toRawData

Static Protected _fromRawData

Static fromBytes

  • fromBytes(bytes: Buffer, internalTxCount?: undefined | number): BlockHeader

Static fromRawData