Skip to content

Latest commit

 

History

History
60 lines (48 loc) · 928 Bytes

README.md

File metadata and controls

60 lines (48 loc) · 928 Bytes

cryptapi

cryptapi nodejs wrapper

Bitcoin, Bitcoin Cash, Litecoin, Ethereum, Monero, IOTA, ...

Installation & Use

npm install cryptapi
yarn add cryptapi
const cryptapi = require('cryptapi')()

// each ticker has 3 methods
// tickerInfo, tickerCreateAddress, tickerLogs
// https://cryptapi.io/docs

cryptapi.btcInfo()
  .then(console.log)
  .catch(console.error)

cryptapi.btcCreateAddress(address, callback, options)
  .then(console.log)
  .catch(console.error)

cryptapi.btcLogs(callback)
  .then(console.log)
  .catch(console.error)

Interface

{
  "btcInfo",
  "btcCreateAddress",
  "btcLogs",
  "bchInfo",
  "bchCreateAddress",
  "bchLogs",
  "ltcInfo",
  "ltcCreateAddress",
  "ltcLogs",
  "etcInfo",
  "etcCreateAddress",
  "etcLogs",
  "xmrInfo",
  "xmrCreateAddress",
  "xmrLogs",
  "iotaInfo",
  "iotaCreateAddress",
  "iotaLogs"
}