Skip to content
This repository has been archived by the owner on Nov 2, 2022. It is now read-only.

DevelopmentCubed/nicehash-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
})();