bulbalion / blockchain

A simple Blockchain in Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Learn Blockchains by Building One

This is the source code for my post on Building a Blockchain.


  1. Make sure Python 3.6+ is installed.
  2. Install pipenv.
$ pip install pipenv 
  1. Create a virtual environment and specify the Python version to use.
$ pipenv --python=python3.6
  1. Install requirements.
$ pipenv install 
  1. Run the server:
    • $ pipenv run python blockchain.py
    • $ pipenv run python blockchain.py -p 5001
    • $ pipenv run python blockchain.py --port 5002


Contributions are welcome! Please feel free to submit a Pull Request.

ezoic increase your site revenue


A simple Blockchain in Python

License:MIT License


Language:Python 100.0%