Skip to content

samuelbohl/Blockchain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blockchain

The goal of this project was to understand how blockchains work and how they are implemented in their simplest form.

What you can do

  • create new transactions
  • view the status of the blockchain
  • "mine"

How to use

You need to have installed Flask to use the script. And you will need a software to make the HTTP requests. (e.g. Postman)

View the chain

make a GET request to:

http://localhost:5000/chain

Add a transaction

make a POST request to:

http://localhost:5000/transactions/new

with a body like:

{
 "sender": "d4ee26eee15998ee92c6cd394edd974e",
 "recipient": "0llsxaelr87cjan9ltmnx7w4edd9th",
 "amount": 100
}

Mine the new transaction

make a GET request to:

http://localhost:5000/mine

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published