The goal of this project was to understand how blockchains work and how they are implemented in their simplest form.
- create new transactions
- view the status of the blockchain
- "mine"
You need to have installed Flask to use the script. And you will need a software to make the HTTP requests. (e.g. Postman)
make a GET request to:
http://localhost:5000/chain
make a POST request to:
http://localhost:5000/transactions/new
with a body like:
{
"sender": "d4ee26eee15998ee92c6cd394edd974e",
"recipient": "0llsxaelr87cjan9ltmnx7w4edd9th",
"amount": 100
}
make a GET request to:
http://localhost:5000/mine