This repository have three folder each folder contain same logic using different programing language (Python and Javascript). Repository contain different file's which by combining these any one analyse how blockchain work under the hood.
-
BLOCKCHAIN-A-Z (JAVASCRIPT)
cd BLOCKCHAIN-A-Z
npm install
npm run node_1
start all five node[node_1, node_2, e.t.c] perform all below listed api
-
API
- BASE URL
http://localhost:3000/
ports change as per running node - MINE BLOCK
/mine_block
- GET CHAIN
/get_chain
- CHAIN IS VALID
/chain_is_valid
- BASE URL
-
BLOCKCHAIN-USING-JAVASCRIPT
cd BLOCKCHAIN-USING-JAVASCRIPT
npm install
npm run node_1
start all five node[node_1, node_2, e.t.c] perform all below listed api
-
API
- BASE URL
http://localhost:3000/
- GET CHAIN
/blockchain
- BROADCAST BLOCK OVER NETWORK
/transaction/broadcast
- MINE BLOCK
/mine
- RECEIVE NEW BLOCK FROM OTHER PEER
/receive-new-block
- RECEIVE AND BROADCAST NEW BLOCK OVER OTHER PEER
/register-add-brodcast-node
- ADD MORE NEW BLOCK INTO NETWORK
/register-node
- ADD MORE THAN ONE NEW BLOCK INTO NETWORK
/register-nodes-bulk
- APPLY CONSENSUS ALGORITHM
/consensus
- BASE URL
-
BLOCKCHAIN-USING-PYTHON (python implementation on BLOCKCHAIN-A-Z inside create_blockchain folder)
cd BLOCKCHAIN-USING-PYTHON
pip install -r requirements.txt
python create_blockchain/blockchain.py
-
API
- BASE URL
http://localhost:5000/
- Follow BLOCKCHAIN-A-Z (JAVASCRIPT) API routes
- BASE URL
Try create_cryptocurrency it help's to create own crypto currency