1.0.7 â€ĸ Published 3 years ago

tapcoin-ts v1.0.7

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

Demo

Connect

connect

Mining

mining

Payment

payment

🎉 Features

  • 💰 Wallet with public and private key.
  • đŸ’ŗ Make Payments between wallets.
  • 🔑 Transactions are signed with the wallet's private key.
  • 🔗 Blocks with index, hash, data, transactions, and timestamp.
  • ⛏ Proof-of-work implementation.
  • ⛓ In-memory JavaScript array to store the blockchain.
  • ✅ Block & Transaction integrity validation.
  • 📡 Decentralized and distributed peer-to-peer communication.
  • ✨ Minimal implementation in 900 lines of code.

đŸ“Ļ Installation

To install this application, you'll need Node.js 7+ (which comes with npm) installed on your computer. From your command line:

Source (recommended)

You'll need Git to run the project from source. From your command line:

# Clone this repository
$ git clone https://github.com/seanjameshan/coin-cli

# Go into the repository
$ cd coin-cli

# Install dependencies
$ npm install

# Run the app
$ npm start

🕹ī¸ Usage

CommandAliasDescriptionExample
open oOpen port to accept incoming connections.open 5000
connect cConnect to a new peer with host and connect localhost 5000
blockchainbcSee the current state of the blockchain.
peerspGet the list of connected peers.
mine addressmMine a new block with rewards going to optional address.mine or mine xxx...
transactionstxSee unconfirmed transactions that can be mined.
wallet wCreate a new wallet with wallet mypassword
keykGet your public key
pay pMake payment to address with and using wallet pay xxx... 10 5 mypassword
balance addressbBalance of optional addressbalance or balance xxx...
help command...Provides help for a given commandhelp balance or help
exitExits application.