FaucethubAPI
Unofficial module for Faucethub API that uses Promises
Constructor
/** * @param api_key Faucethub API Key * @param currency A valid currency acronym */
send
/** * @description The method to send coins to an address * @param to The coin address you are sending to * @param amount The amount to send in satoshi * @param referral Set this value to true, 1, or simply leave it blank. Use it to indicate that this payout is a referral earning * @param ip_address Include the user's IP address to help contribute to the fight against bots and malicious users * @return */ public
getPayouts
/** * @description The method to get the last few payouts you did, up to 10. * @param count A value between 1 and 10, defaults to 1 * @return */ public
getCurrencies
/** * @description The method to get a list of all the currencies we support on our platform and their status * @return */ public
getBalance
/** * @description The method to get your account balance in any supported currency * @return */ public
checkAddress
/** * @description The method to check if their currency address belongs to an account * @param address The coin address you checking * @return */ public
Example
const FaucethubAPIPromise = ; let faucethubapipromise = 'azertyuiopqsdfghjklmwxcvbn' 'DOGE' // Send 0.5 DOGE faucethubapipromise;