hpool-api

0.0.2 • Public • Published

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', 'connection cookie string');
  try {
    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)

Readme

Keywords

Package Sidebar

Install

npm i hpool-api

Weekly Downloads

3

Version

0.0.2

License

GPL-3.0

Unpacked Size

47.3 kB

Total Files

10

Last publish

Collaborators

  • felixbrucker