2.1.5 • Published 2 years ago

ccer-sdk v2.1.5

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

ccer-sdk-nodejs

Let developers can all use ccer blockchain services more easily.

Installation

This is a Node.js module available through the npm registry.

Before installing, download and install Node.js. Node.js 6.0.0 or higher is required.

Installation is done using the npm install command:

$ npm install ccer-sdk --save

Quick Start

Create ccer-sdk instance:

'use strict';

const ccerSDK = require('ccer-sdk');

const sdk = new ccerSDK({
  host: 'seed1.ccertest.io:26002',
});

Usage:

// Create account
sdk.account.create().then(data => {
  console.log(data);
}).catch(err => {
  console.log(err.message);
});

Tests

To run the test suite, first install the dependencies, then run npm test:

$ npm install
$ npm test

Docs

License

MIT