/noobcash

Just another simple blockchain implementation.

Primary LanguagePythonMIT LicenseMIT

Noobcash

Just another simple blockchain implementation.

Demo

API Reference

Get balance of your wallet

  GET /balance

View transactions of the last block in the blockchain

  GET /transactions

Create a transaction

  POST /transactions
Parameter Type Description
node_id int Required. Id of the receiver node
amount int Required. Amount of BTC to send

Environment Variables

To run this project, you will need to add the following environment variables to your .env file or change the config.py file.

ENV

HOST

PORT

IS_BOOTSTRAP

BOOTSTRAP_HOST

BOOTSTRAP_PORT

MAX_USER_COUNT

BLOCK_CAPACITY

MINING_DIFFICULTY

Run Locally

Clone the project

  git clone https://github.com/mariosker/noobcash

or

  gh repo clone mariosker/noobcash

Go to the project directory

  cd noobcash

Install dependencies

  pip install -r backend/requirements.txt
  pip install -r cli/requirements.txt

Change the env/ config file and start the server

  python backend/app.py

You can also install it via docker:

cd infra
docker compose up

License

MIT