
Security News
n8n Tops 2025 JavaScript Rising Stars as Workflow Platforms Gain Momentum
n8n led JavaScript Rising Stars 2025 by a wide margin, with workflow platforms seeing the largest growth across categories.
hdpool-api
Advanced tools
const { HDPoolAccountApi } = require('hdpool-api');
const userId = 12345;
const sessionKey = 'rOw7vZuqaC0GbapWGxeUECwLfDJaE2J74aCrmgnRfroolPuMOZUX7GotMRsy';
const hdpoolAccountApi = new HDPoolAccountApi(userId, sessionKey);
(async () => {
await hdpoolAccountApi.init();
const userInfo = await hdpoolAccountApi.getUserInfo();
const generalStats = await hdpoolAccountApi.getGeneralStats();
const miners = await hdpoolAccountApi.getMiners();
const pledgeState = await hdpoolAccountApi.getPledgeState();
const boundPlotter = await hdpoolAccountApi.getBoundPlotter();
const depositHistory = await hdpoolAccountApi.getDepositHistory();
const withdrawHistory = await hdpoolAccountApi.getWithdrawHistory();
const earningsHistory = await hdpoolAccountApi.getEarningsHistory();
const expectedEarningsHistory = await hdpoolAccountApi.getExpectedEarningsHistory();
const rentalDetails = await hdpoolAccountApi.getRentalDetails();
const rentingState = await hdpoolAccountApi.getRentingState();
const rentingOrderHistory = await hdpoolAccountApi.getRentingOrderHistory();
const lendingEarningsStats = await hdpoolAccountApi.getLendingEarningsStats();
const lendingOrderHistory = await hdpoolAccountApi.getLendingOrderHistory();
const poolStats = await hdpoolAccountApi.getPoolStats();
const nextFreePaymentDate = await hdpoolAccountApi.getNextFreePaymentDate(); // When we can send a payout without paying fees
await hdpoolAccountApi.rent(Math.round(2 * Math.pow(10, 8)), 7); // rent 2 BHD for 7 days
await hdpoolAccountApi.lend(Math.round(5 * Math.pow(10, 8)), 15); // lend 5 BHD for 15 days
await hdpoolAccountApi.withdraw(Math.round(5 * Math.pow(10, 8))); // withdraw 5 BHD
await hdpoolAccountApi.cancelWithdraw(1234); // Cancel the withdraw with id 1234
const {
pool_wallet_addr,
trans_amount,
} = await hdpoolAccountApi.deposit(Math.round(5 * Math.pow(10, 8))); // deposit 5 BHD, actual amount to send might differ
hdpoolAccountApi.onBestMiningInfo(bestMiningInfo => {
// Do stuff
});
})();
const { HDPoolMiningApi } = require('hdpool-api');
const accountKey = 'dpvwfv34-xprf-15t2xwb12o8yglm4palf55';
const minerName = 'Miner 1';
const capacityInGB = 512;
const hdpoolMiningApi = new HDPoolMiningApi(accountKey, minerName, capacityInGB);
(async () => {
await hdpoolMiningApi.init();
const miningInfo = await hdpoolMiningApi.getMiningInfo();
hdpoolMiningApi.onMiningInfo(miningInfo => {
// Do stuff
});
hdpoolMiningApi.submitNonce('12297078971021390907', 143779, '111137519053', 81);
})();
localStorage.getItem('sess') into the consoleGNU GPLv3 (see LICENSE)
FAQs
Interact with the HDPool account and mining related API programmatically.
The npm package hdpool-api receives a total of 11 weekly downloads. As such, hdpool-api popularity was classified as not popular.
We found that hdpool-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
n8n led JavaScript Rising Stars 2025 by a wide margin, with workflow platforms seeing the largest growth across categories.

Security News
The U.S. government is rolling back software supply chain mandates, shifting from mandatory SBOMs and attestations to a risk-based approach.

Security News
crates.io adds a Security tab backed by RustSec advisories and narrows trusted publishing paths to reduce common CI publishing risks.