If you would like to test this blockchain, you will need Postman or you can use cURL.
- Clone this repo
- Run the script with Python 3.6
- Using Postman, make a GET request to
http://localhost:5000/mine
- this will create a new block in the Blockchain
- You will want to copy the transactions object containing
'amount'
,'recipient'
, and'sender'
- 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"