1.0.2 • Published 2 years ago
cpcoin-node-api v1.0.2
CPCoin Node API
CPCoin Node API features and library for Node.js and browser, enabling easy connection with Node REST API.
Installing
Using npm:
$ npm install cpcoin-node-api
Example
import { CPCoinNodeApiService } from 'cpcoin-node-api'
const api : CPCoinNodeApiService = new CPCoinNodeApiService()
api.getStatistics({})
.then((response) => {
console.log('Response:', response)
})
.catch((error) => {
console.log('Error:', error)
})
api.<method>(<params>) <- return Promise
api.<method> will provide autocomplete and parameter typings