@developmentcubed/nicehash-api
TypeScript icon, indicating that this package has built-in type declarations

1.1.4 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @developmentcubed/nicehash-api

Weekly Downloads

5

Version

1.1.4

License

GPL-3.0-or-later

Unpacked Size

59.3 kB

Total Files

7

Last publish

Collaborators

  • hazedspacex