Creating Blockchain using Javascript
2 min readFeb 5, 2019
Constructor:
Create a block:
Create a transaction:
Get the last block:
Create Hash:
Proof of Work:
Validating Chain:
Mine a Block:
Register a new Node in Blockchain network:
Broadcast a new transaction:
Receive a new Block: