- Flask (for Web App)
- hashlib (for hashing blocks)
- datetime (for timestamping blocks)
- install dependencies
- run blockchain.py with
py blockchain.py
- To Mine new block:
- create GET request at localhost:5000/mine
- Note: wait for a request to give response. Multiple requests creates blocks with same previous blocks and fails sanity check
- To get complete chain:
- create GET request at localhost:5000/chain
- To check sanity:
- create GET request at localhost/chain
Note:
- Use postman to create requests
- By replace localhost with IPv4 Address to access it via other systems on same network
- Implement basic blockchain
- Incorporate custom data in blocks
- Create custom cryptocurrency
- Create smart contracts