runticle / js-blockchain

JavaScript Blockchain example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Quickstart

Set up at least one node, defining PORT number as you do

PORT=5000 yarn start
PORT=5001 yarn start

Open up Postman or equivalent and use to send requests to a node
GET /blockchain returns blockchain
POST /mine mines block (you can set difficulty in the Blockchain class)
POST /transactions adds a transaction to the next block

About

JavaScript Blockchain example


Languages

Language:JavaScript 100.0%