Skip to content

This is a blockchain based Hackathon project on Kerala Relief

Notifications You must be signed in to change notification settings

GauravWalia19/Chaos2.0

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CHAOS 2.0

DEPENDENCIES

  • sha256
  • express
  • nodemon
  • body-parser
  • uuid

OTHERS

  • postman (API development environment)
  • chrome extension JSON FORMATTER

WORKING OF BLOCKCHAIN API

  • open the repo and start server by npm start
  • don't change the js file while running server it may get crashed never run unless u restart a system

SEE CURRENT BLOCKCHAIN

  • OPEN localhost:3000/blockchain on chrome

CREATE A NEW TRANSACTION

  • OPEN YOUR POSTMAN(installed)
  • Enter the url http://localhost:3000/transaction
  • Check options
    • Select body
    • Select raw
    • Select JSON
    • Enter the json
{
    "amount": 50,
    "sender": "SDGDFGDFSGDFGDFGG3",
    "recipient": "SDASGDGDGDLNJFGDFG"
}
  • Here transaction amount is 50 ,sender has a unique sha256 while recipient have a unique a sha256. Click send on postman. For again new transaction change values and again send it.

  • You will receive a message of new transaction on postman

  • Refresh browser having url localhost:3000/transaction

  • You will now see transactions done

  • Refresh browser having url localhost:3000/blockchain

  • You will now see a pending transactions in blockchain

MINE A BLOCK

  • Now for mining a block
  • Refresh browser having url localhost:3000/mine
  • You will now see a mined a block on browser
  • Again Refresh browser having url localhost:3000/blockchain
  • Then u will see no pending transaction

About

This is a blockchain based Hackathon project on Kerala Relief

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published