项目作者: OTCExchange

项目描述 :
Crypto-wallet for ICO campaign
高级语言: LiveScript
项目地址: git://github.com/OTCExchange/OTCE-CRYPTO-WALLET.git
创建时间: 2018-02-12T02:13:52Z
项目社区:https://github.com/OTCExchange/OTCE-CRYPTO-WALLET

开源协议:

下载


Crypto-wallet for ICO campaign

How to launch ICO? This is tool for it.

Examples of successful ICO: https://otcexchange.trade

Install

This is a white label solution to create a contribution crypto-wallet that can be used in your ICO campaign.

Install

NodeJS is required.

  1. npm i blockstarter

Usage

In your Nodejs project:

  1. let blockstarter = require('blockstarter');

Get balance of cryptocurrency address

  1. // Get balance of BTC address
  2. blockstarter.balance.btc('BTC_PUBLIC_ADDRESS', (amount) => {
  3. console.log(amount.toString());
  4. })
  5. // Get balance of LTC address
  6. blockstarter.balance.ltc('LTC_PUBLIC_ADDRESS', (amount) => {
  7. console.log(amount.toString());
  8. })
  9. // Get balance of ETH address
  10. blockstarter.balance.eth('ETH_PUBLIC_ADDRESS', (amount) => {
  11. console.log(amount.toString());
  12. })

Get cryptocurrency rates

  1. // Get BTC/USD rate
  2. blockstarter.rate.btc( (usd) => {
  3. console.log(usd);
  4. })
  5. // Get LTC/USD rate
  6. blockstarter.rate.ltc( (usd) => {
  7. console.log(usd);
  8. })
  9. // Get ETH/USD rate
  10. blockstarter.rate.eth( (usd) => {
  11. console.log(usd);
  12. })

More code examples

More info

  1. Please check out `test` folder

Please check out ./test folder for more usage examples.