Options
All
  • Public
  • Public/Protected
  • All
Menu

@developmentcubed/nicehash-api

nicehash-api

NPM

A wrapper for the NiceHash API.

You can view the documentation here.

Installation

npm install -S @developmentcubed/nicehash-api

Examples

Getting the info of an account

const { NiceHash } = require("@developmentcubed/nicehash-api");

const api = new NiceHash({
apiKey: 'Your API Key',
apiSecret: 'Your API Secret',
orgID: 'Your Organization ID'
});

(async () => {
const account = await api.getAccount('BTC');
console.log(account.available); // 0.00012363
})();

Generated using TypeDoc