golbin님의 G-Coin 을 보고 Express, TypeScript 로 작성한 TS-Coin 입니다.
Simple BlockChain implementation with Express, TypeScript.
$ git clone https://github.com/ysm0622/ts-coin.git
$ npm i
$ node index.js
And go to http://localhost:3000
Using Postman which is API test tool.
-
POST
/transaction- Add transaction.
- Transaction format :
{ "sender": "0", "recipient": "foo", "amount": 0 }
-
GET
/transaction- Get pending transactions.
-
POST
/mine- Mining. Find proof and make block with rewards.
-
GET
/chain- Get full chain to validate.
-
POST
/node- Add a node.
-
GET
/node- Get all nodes.
-
GET
/chain/valid- Valid chain.