A wrapper for the NiceHash API.
You can view the documentation here.
npm install -S @developmentcubed/nicehash-api
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