Getting Started

Dependencies

NodeJS

NodeJS is a javascript runtime build on Chrome’s V8 engine. npm is the package manager for NodeJS.

Use the official installer from nodejs.org. Install the one which says “Recommended for Most Users”

Command Line

To use commands like new and console:

npm install bitbox-sdk --global

To use inside a command line script or client/server app:

npm install bitbox-sdk --save

Usage

Use the scaffold generator, or manually import BITBOX into your code:

let BITBOXSDK = require('bitbox-sdk/lib/bitbox-sdk').default;
let BITBOX = new BITBOXSDK();

Share on...