1.0.2 • Published 2 years ago

cpcoin-node-api v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

CPCoin Node API Logo

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