0.2.5 • Published 4 years ago

faucetpayjs v0.2.5

Weekly downloads
10
License
ISC
Repository
github
Last release
4 years ago

FaucetPayJS

NodeJS Based API collection of FaucetPay.io

Installation

npm i --save faucetpayjs

API Endpoints

How to start

const { API } = require('FaucetPayJS');
const myAPI = new API(process.env.API_KEY);
myAPI.getBalance().then(data => {
	console.dir(data)
})

Response

{
  status: 200,
  message: 'OK',
  currency: 'BTC',
  balance: '174',
  balance_bitcoin: '0.00000174'
}

API Methods

Get Balance

API.getBalance(currency='BTC') Aliases API.balance

List Currencies

API.getCurrencies() Aliases API.currencies API.checkCurrencies

Check If Address Linked

API.checkAddress(address, currency='BTC') Aliases API.isAddressExist API.findAddress

Send Funds

API.send(amount, to, currency='BTC', referral=false, ipaddress='0.0.0.0') Aliases API.tip API.transfer API.withdraw API.withdrawto

List Your Faucet's Payout

API.payouts(currency='BTC', count=100) Aliases API.getPayouts API.listPayouts API.recentPayouts

List Faucets on Faucet List

API.faucetlist() Aliases API.faucetList API.listFaucet API.faucetLists API.listFaucets API.fetchFaucet API.fetchFaucets API.retrieveFaucets API.fetchRotator

Contributing

  1. I use ' instead of " for string or character
  2. No semicolons, sorry.
  3. No trailing space (ex. a = 1 + 1)
  4. Add space before and after curly-braces (except if its making trailing spaces)
  5. Minimum line changed is 2
  6. DO NOT CHANGE THE BRAND, that's stupid.

End Notes

Thank you for visiting this page! Appreciate my works by Following, being a Stargazer, Contribute to the project or Donate me via cryptocurrency down below BTC, ETH, LTC, BCH, DASH, DGB, FEY via FaucetPay (username: Hanz) DOGE : DFazapEWQNFBDMRN4Soo4iGDRgdqKqUSfR WAVES : use alias (hanz, hanzhaxors, haxors)

0.2.5

4 years ago

0.2.4

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.1.0

5 years ago