Skip to content

This is a self study to help myself better understand how blockchain technology works

Notifications You must be signed in to change notification settings

kylegibson15/Python_Blockchain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Python Blockchain

this is a self study to help myself better understand how blockchain technology works

If you would like to test this blockchain, you will need Postman or you can use cURL.

  1. Clone this repo
  2. Run the script with Python 3.6
  3. Using Postman, make a GET request to http://localhost:5000/mine
    • this will create a new block in the Blockchain
  4. You will want to copy the transactions object containing 'amount', 'recipient', and 'sender'
  5. In Postman, make a POST request to http://localhost:5000/transactions/new
    • You will add the transactions object you copied from your GET response to the body in the POST request
    • You should receive a response that reads some thing like "message": "Transaction will be added to Block 1"
Additionally, you may run the same script on a different server, say http://localhost:5001 to see that the blockchain nodes will update from additional servers and keep a history of previous transactions made.

About

This is a self study to help myself better understand how blockchain technology works

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages