/Blockchain-using-Python

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Blockchain-using-Python

Notes:

  1. To install Flask, open anaconda prompt or windows command line and type " pip install Flask==0.12.2 ".
  2. To install postman, download the operating system compliant setup from " https://www.getpostman.com/apps " .

How to run the blockchain:

  1. Run the python code.
  2. Open postman app, (i)To add a block: type http://127.0.0.1:5000/mine_block in the address bar and press enter/click on send button (Please refer demo folder in the repository), (ii)To get the blockchain: type http://127.0.0.1:5000/get_chain in the address bar and press enter/click on send button (Please refer demo folder in the repository), (iii)To check if the blockchain is valid: type http://127.0.0.1:5000/is_valid in the address bar and press enter/click on send button (Please refer demo folder in the repository)

Aman Ali