Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.
/ hpool-api Public archive

Interact with the HPool account API programatically

License

Notifications You must be signed in to change notification settings

felixbrucker/hpool-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

Interact with the HPool account API programatically

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages