Skip to content
Latest commit 892117a Jun 6, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
src updating part 1 May 1, 2019
test updating part 1 May 1, 2019 update part1 readme May 7, 2019
package-lock.json Update mocha Jun 6, 2019
package.json Update mocha Jun 6, 2019

kauri-learn-to-build-a-blockchain Part1: Blocks & Consensus

Source code for Kauri series of articles on Creating a Blockchain | Blocks & Consensus


  1. Install Node & NPM
  2. Clone this respo
  3. Run npm install


Start a node

node src/server.js port=<port>

Mine a block

curl -X POST "localhost:<port>/mine" -H 'Content-Type: application/json' -d'
    "data": "Mine a block on node 1"

Add peer to node

curl -X POST "localhost:<port>/peers/add"  -H 'Content-Type: application/json' -d'
    "peers":  ["http://<host>:<port>"]


Contributions are welcome! Please feel free to submit a PR and/or a Kauri article

You can’t perform that action at this time.