Skip to content

This project is a basic Blockchain implementation in Golang.

Notifications You must be signed in to change notification settings

bitalov/BlockchainWithGo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Basic Blockchain with Golang

TODOs :

  • Networking.
  • Proof of Work.
  • Proof of Stake.
  • Peer-to-Peer.

Deployement :

  • Download main.go , and ports.env.

  • Rename ports.env to .env using "mv ports.env .env".

  • run main.go using run go main.go

  • Open a web browser and http://localhost:8080/ (8080 is the port I wrote in .env file).

  • To Add a new Block you can use curl to send a POST request to http://localhost:8080 .

    Example : curl -i -X POST -H 'Content-Type: application/json' -d '{"BPM":50}' http://localhost:8080

Screenshots :

Screenshot of POST request using "CURL"

Screen1

Screenshot of Blocks

Screen2

Releases

No releases published

Packages

No packages published