Skip to content

⛓ Simple Blockchain implementation with Express, TypeScript.

License

Notifications You must be signed in to change notification settings

ysm-dev/ts-coin

Repository files navigation

TS-Coin

golbin님의 G-Coin 을 보고 Express, TypeScript 로 작성한 TS-Coin 입니다.

Simple BlockChain implementation with Express, TypeScript.

Table of Contents

Installation

$ git clone https://github.com/ysm0622/ts-coin.git
$ npm i
$ node index.js

And go to http://localhost:3000

Usage

Using Postman which is API test tool.

Postman

Endpoints

  • 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.

References

About

⛓ Simple Blockchain implementation with Express, TypeScript.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published