0.0.2 • Published 5 years ago

hpool-api v0.0.2

Weekly downloads
6
License
GPL-3.0
Repository
github
Last release
5 years ago

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)

0.0.2

5 years ago

0.0.1

5 years ago