
Security News
Node.js Drops Bug Bounty Rewards After Funding Dries Up
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.
faucethub-api
Advanced tools
Library for faucet on faucethub.io
npm install faucethub-api
For all methods check official docs: faucethub.io/api ###Interface
/**
* @param api_key {String} - api key
* @param currency {String} - currency for faucet (BTC, LTC, DOGE, ...)
* @constructor
*/
const FaucethubAPI = require('faucethub-api');
/**
* get-request without body
* @param callback {Function.<Object>}
* */
FaucethubAPI.getBalance(callback);
/**
* @param address {String} currency address
* @param callback {Function.<Object>}
* */
FaucethubAPI.checkAddress(address, callback);
/**
* put-request with header "Content-Type: application/x-www-form-urlencoded" and body
* @param address {String} currency address
* @param amount {Number} amount of currency in satoshi
* @param callback {Function.<Object>}
* */
FaucethubAPI.send(address, amount, callback);
/**
* @param count {Number} count of last rewards
* @param callback {Function.<Object>}
* */
FaucethubAPI.payouts(count, callback);
###example
const FaucethubAPI = require('faucethub-api');
const api_key = "abcdefghijklmnopqrstuvwxyz";
const currency = "DOGE";
const faucethubApi = new FaucethubAPI(api_key,currency);
faucethubApi.getBalance(res => {
console.log(res);
});
/**
{
"status": 200,
"message": "OK",
"currency": "DOGE",
"balance": 1000000000000,
"balance_bitcoin": 10000
}
*/
faucethubApi.payouts(10, res => {
console.log(res);
});
/**
{
"status": 200,
"message": "OK",
"rewards": [
{
"to": "CURRENCY_ADDRESS_HERE",
"amount": 1,
"date": "17-11-16 10:38:48 GMT"
},
{
"to": "CURRENCY_ADDRESS_HERE",
"amount": 1,
"date": "17-11-16 10:38:33 GMT"
}
]
}
*/
faucethubApi.checkAddress("DMtLpJF8a2GHFZNFD6wLf4ZprdorAC4a5r", res => {
console.log(res);
});
/**
{
"status": 200,
"message": "OK",
"payout_user_hash": "SOME_HASH"
}
*/
faucethubApi.send("DMtLpJF8a2GHFZNFD6wLf4ZprdorAC4a5r", 100000000 /* 1 DOGE */, res => {
console.log(res);
});
/**
{
"status": 200,
"message": "OK",
"rate_limit_remaining": 1.24004514,
"currency": "DOGE",
"balance": 29000000,
"balance_bitcoin": 0.290000,
"payout_id": 1234,
"payout_user_hash": "SOME_HASH"
}
*/
FAQs
API for service faucethub.io
We found that faucethub-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
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.