The preferred way to install the CoinStack SDK for Node.js is to use the npm package manager for Node.js. Simply type the following into a terminal window:
npm install coinstack-sdk-js
Appropriate credentials must be created prior to using CoinStack SDK for Node.js; credentials can be created using CoinStack dashboard (https://www.blocko.io/)
Start by importing coinstack package
var CoinStack =
You can provide credentials through constructor or environment varaiables
export COINSTACK_ACCESS_KEY="YOUR_COINSTACK_ACCESS_KEY"export COINSTACK_SECRET_KEY="YOUR_COINSTACK_SECRET_KEY"
var client =
var accessKey = "YOUR_COINSTACK_ACCESS_KEY"var secretKey = "YOUR_COINSTACK_SECRET_KEY"var client = accessKey secretKey
// get best blockclient;// check balanceclient;// creating txvar txBuilder = client;txBuildertxBuildertxBuilder;txBuilder
Visit https://www.blocko.io/ for registration and management.
Licensed under the MIT License.