Class: Block

Block()

new Block()

This is Block class. It's crucial element of blockchain. Blocks are being connected via hash of the previous block.
Source:

Methods

hashValue() → {hash}

This function returns hash value of Block
Source:
Returns:
Type
hash

hasValidTransactions() → {boolean}

This function checks if the block has all valid transactions
Source:
Returns:
Type
boolean

update(data)

Update block from given data
Parameters:
Name Type Description
data
Source: