An open API service indexing awesome lists of open source software.

https://github.com/tacyarg/cryptapi

cryptapi nodejs wrapper
https://github.com/tacyarg/cryptapi

api bitcoin cryptapi ethereum interface lib nodejs wrapper

Last synced: 11 months ago
JSON representation

cryptapi nodejs wrapper

Awesome Lists containing this project

README

          

# cryptapi

[cryptapi](https://cryptapi.io/docs) nodejs wrapper

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

## Installation & Use

```bash
npm install cryptapi
```

```bash
yarn add cryptapi
```

```js
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

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