- Needs GO to build the package. Install Go from here
- Clone the repository.
- Build the package
go build
- Run the package
./simpleblockchain
-
Run the server as mentioned above. [Setup:3]
-
Hit localhost:[port] on your browser/postman or even curl to get json data of the genesis block.
-
Add some transactions. For this you can use postman or send a post request using curl.
-
Now get all the transactions.
-
Note that the blocks are created for each transaction and contains the hashed data of the previous blocks.
-
Enjoy!