Tutorial for implementing a mini blockchain application implemented in Python from scratch.
Clone or download
satwikkansal Merge pull request #6 from kawa23/master
[Bug fix]validate_and_add_block error
Latest commit 4bfa257 Dec 6, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
app Implement the application Feb 25, 2018
screenshots Add screenshots Feb 25, 2018
README.md Update README.md Sep 30, 2018
node_server.py validate_and_add_block function fix Nov 17, 2018
run_app.py Implement the application Feb 25, 2018
step_by_step_tutorial.md Create step_by_step_tutorial.md Sep 30, 2018



A simple tutorial for developing a blockchain application from scratch in Python.

What is blockchain? How it is implemented? And how it works?

Please read the step-by-step implementation tutorial to get your answers :)

Instructions to run

Clone the project,

$ git clone https://github.com/satwikkansal/python_blockchain_app.git

Start a blockchain node server,

$ python node_server.py

Run the application,

$ python run_app.py

The application should be up and running at http://localhost:5000.

Here are a few screenshots

  1. Posting some content


  1. Requesting the node to mine


  1. Resyncing with the chain for updated data


To play around by spinning off multiple custom nodes, use the add_nodes/ endpoint to register a new node. To update the node with which the application syncs, change CONNECTED_NODE_ADDRESS field in the views.py file.