Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 939 Bytes

README.md

File metadata and controls

40 lines (28 loc) · 939 Bytes

Piccol chain

Based on

Prerequisites

You need:

  • jdk 11
  • maven
  • docker
  • docker compose

Run it!

Execute
mvn clean package && docker-compose up

Than you can communicate with nodes on these url:

Put those urls in you browser to show node's data.

Api

Guestlist

  • POST /nodes join the net, body contains the hostname
  • GET /nodes retrieve the nodes' hostnames

Node

  • POST /transactions create a transaction, body contains the json representation
  • GET /mine mine a block
  • GET /blocks retrieve the blockchain
  • POST /addPeer make the peer extabilish a websocket connection. body contains the hostname