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

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

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