npm.io
4.0.2 • Published 4 years ago

bubichain-sdk-nodejs

Licence
ISC
Version
4.0.2
Deps
12
Size
292 kB
Vulns
13
Weekly
0

bubichain-sdk-nodejs

Let developers can all use bubi 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 bubichain-sdk-nodejs --save

Quick Start

Create bubichain-sdk-nodejs instance:

'use strict';

const BubiChainSDK = require('bubichain-sdk-nodejs');

const sdk = new BubiChainSDK({
  host: 'https://seed1-node.bubi.cn',
});

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

Keywords