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
- Host: GitHub
- URL: https://github.com/tacyarg/cryptapi
- Owner: tacyarg
- License: mit
- Created: 2019-12-06T23:16:15.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T11:20:18.000Z (over 3 years ago)
- Last Synced: 2025-06-04T05:32:53.610Z (about 1 year ago)
- Topics: api, bitcoin, cryptapi, ethereum, interface, lib, nodejs, wrapper
- Language: JavaScript
- Size: 33.2 KB
- Stars: 5
- Watchers: 0
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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"
}
```