Skip to content

Latest commit

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

TinyBlockchain

This project was a port of snakecoin to Go.

The idea is to have a super simple server because the block chain

Usage

Start everything:

go run web.go

Add transactions:

curl "localhost:9090/txion" \
-H "Content-Type: application/json" \
-d '{"from": "akjflw", "to":"fjlakdj", "amount": 3}'

Navigate in a browerser

http://localhost:9090/ -> Generates blocks to add
http://localhost:9090/mine -> Mines a new block and adds it to the chain
http://localhost:9090/blocks -> Makes sure you have the longest blockchain then prints it

About

A really easy to understand blockchain primer written in Go

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages