Clojure implementation of blockchain inspired by this article
Run locally
$ lein ring server-headless
Testing
$ lein test
Add a new transaction to a block.
POST /transactions/new
Parameters
Name | Type | Description |
---|---|---|
sender | string | Who is sending the coins |
recipient | string | Who to send the coins to |
amount | int | Number of coins |
Mine a new block.
GET /mine
Return the full Blockchain.
GET /chain
Add a new node.
POST /nodes/new
Parameters
Name | Type | Description |
---|---|---|
address | url | URL of node |
Resolve node conflicts.
GET /nodes/resolve
Copyright (c) 2017 Conor Hughes - Released under the MIT license.