
Security News
Open VSX Begins Implementing Pre-Publish Security Checks After Repeated Supply Chain Incidents
Following multiple malicious extension incidents, Open VSX outlines new safeguards designed to catch risky uploads earlier.
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 10 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
Following multiple malicious extension incidents, Open VSX outlines new safeguards designed to catch risky uploads earlier.

Research
/Security News
Threat actors compromised four oorzc Open VSX extensions with more than 22,000 downloads, pushing malicious versions that install a staged loader, evade Russian-locale systems, pull C2 from Solana memos, and steal macOS credentials and wallets.

Security News
Lodash 4.17.23 marks a security reset, with maintainers rebuilding governance and infrastructure to support long-term, sustainable maintenance.