Just another simple blockchain implementation.
GET /balance
GET /transactions
POST /transactions
Parameter | Type | Description |
---|---|---|
node_id |
int |
Required. Id of the receiver node |
amount |
int |
Required. Amount of BTC to send |
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
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