Skip to content

This repo is about the simple blockchain example with 5 nodes. Also examine the nodes using block-explorer.

Notifications You must be signed in to change notification settings

Shoebtamboli/Build-Blockchain-in-nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build blockchain in nodejs

Simple blockchain example with 5 nodes.

How to run

git clone
npm install 
npm run node_1
npm run node_2
npm run node_3
npm run node_4
npm run node_5

make sure all network nodes are running.

APIs

Method
GET /blockchain
POST /transaction
POST /transaction/broadcast
GET /mine
POST /receive-new-block
POST /register-and-broadcast-node
POST /register-node
POST /register-nodes-bulk
GET /consensus
GET /block/:blockHash 
GET /transaction/:transactionId
GET /address/:address
GET /block-explorer

To run block-explorer

http://localhost:{PORT}/block-explorer

Alt text

Alt text

Alt text

About

This repo is about the simple blockchain example with 5 nodes. Also examine the nodes using block-explorer.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published