Class: MoneroBlockHeader

MoneroBlockHeader(state)

Models a Monero block header which contains information about the block.

Constructor

new MoneroBlockHeader(state)

Construct the model.
Parameters:
Name Type Description
state MoneroBlockHeader | object is existing state to initialize from (optional)
Source:

Methods

copy()

Source:

getCumulativeDifficulty()

Source:

getDepth()

Source:

getDifficulty()

Source:

getHash()

Source:

getHeight() → {number}

Return the block's height which is the total number of blocks that have occurred before.
Source:
Returns:
the block's height
Type
number

getLongTermWeight()

Source:

getMajorVersion()

Source:

getMinerTxHash()

Source:

getMinorVersion()

Source:

getNonce()

Source:

getNumTxs()

Source:

getOrphanStatus()

Source:

getPowHash()

Source:

getPrevHash()

Source:

getReward()

Source:

getSize()

Source:

getTimestamp()

Source:

getWeight()

Source:

merge()

Source:

setCumulativeDifficulty()

Source:

setDepth()

Source:

setDifficulty()

Source:

setHash()

Source:

setHeight(height) → {MoneroBlockHeader}

Set the block's height which is the total number of blocks that have occurred before.
Parameters:
Name Type Description
height number is the block's height to set
Source:
Returns:
a reference to this header for chaining
Type
MoneroBlockHeader

setLongTermWeight()

Source:

setMajorVersion()

Source:

setMinerTxHash()

Source:

setMinorVersion()

Source:

setNonce()

Source:

setNumTxs()

Source:

setOrphanStatus()

Source:

setPowHash()

Source:

setPrevHash()

Source:

setReward()

Source:

setSize()

Source:

setTimestamp()

Source:

setWeight()

Source:

toJson()

Source:

toString()

Source: