Single file project written in Python that I did during a Blockchain course. This was helpful for me to acquire the main Blockchain concepts. It runs on a local Flask server and it can be used trough Postman doing request to some endpoints.
I'm not the author of this app. I just followed the tutorial to learn the concepts and practice python. This project is part of the awesome course Curso Completo de Blockchain de cero a experto by Joan Amengual and Juan Gabriel Gomila Salas. It's in spanish :)
Prerequisites: You will need python and postman to be installed in your pc.
- Clone this repo.
- Execute blockchain.py using the run button in VisualStudio Code, or in the command line:
$ python blockchain.py
- In postman import the collection from this link
- Play arround with the endponits: Mine some blocks, get the chain and see how the blocks was added to it, and last but not least, validate the chain!
- 0.0.0.0:5000/mine_block
- 0.0.0.0:5000/get_chain
- 0.0.0.0:5000/valid