Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

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

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages