Socket
Book a DemoInstallSign in
Socket

hpool-api

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hpool-api

Interact with the HPool account API programatically.

Source
npmnpm
Version
0.0.1
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

HPool API

Software License npm npm weekly downloads

Usage

const HpoolApi = require('hpool-api');

(async () => {
  const client = new HpoolApi('my-api-key', 'my-user-name');
  try {
    const result = await client.bindPlotter('bind data hex string');
    const capacity = await client.getPoolCapacityInGB();
    const onlineUser = await client.getPoolUserOnline();
    const onlineMiner = await client.getPoolMinerOnline();
    const pendingBalance = await client.getPendingBalance();
    const mortgageInfo = await client.getMortgageInfo();
    const miner = await client.getMiner();
    const minedBlocksHistory = await client.getMinedBlocksHistory();
    const earningsHistory = await client.getEarningsHistory();
    const earningDetailsHistory = await client.getEarningDetailsHistory();
    const submittedDeadlinesHistory = await client.getSubmittedDeadlinesHistory();
    const balanceActivityHistory = await client.getBalanceActivityHistory();
    const withdrawHistory = await client.getWithdrawHistory();
    const boundPlotter = await client.getBoundPlotter();
  } catch (err) {
    console.error(err);
  }
})();

License

GNU GPLv3 (see LICENSE)

Keywords

hpool

FAQs

Package last updated on 17 Mar 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts