Pages:
Author

Topic: [ANN] FaucetBOX.com - API & faucet script, create your own crypto faucet - page 62. (Read 119991 times)

legendary
Activity: 971
Merit: 1000

Probably only the FaucetBOX faucets created from "scratch" exhibit this behavoiur (how sad!  Embarrassed )


I think you'll be happy to hear, that we have a fix for that on our Roadmap Smiley. Hovewer it'll be up to faucet owners to decide if they want that, because they'll have to update the script on their servers.
member
Activity: 83
Merit: 10
The FaucetBOX.com has nothing to do when a faucet sends you a referral payout or how much does it send. And it depends on the particular faucet when it'll do that. Faucet in a Box script requires you to manually request a payout, but some custom scripts don't. I'm not sure how Microfaucet works, I'd have to check that.


I'm sure Microwallet was the way I describe it and the same holds true for those faucets migrated to FaucetBox.

Quote from: Microwallet script
if ($row['referral_earnings'] >= 100000) {
    $referralEarningsInSatoshi = (int) ($row['referral_earnings'] / 100);
    $result = $microwallet->sendReferralEarnings($_COOKIE['r'], $referralEarningsInSatoshi);
    if ($result['success']) {
        $escapedReferralEarnings = mysqli_real_escape_string($db, $referralEarningsInSatoshi * 100);
        mysqli_query($db, "update microfaucet_users set referral_earnings = referral_earnings - $escapedReferralEarnings where username = '$escapedR'");
     }
}

Probably only the FaucetBOX faucets created from "scratch" exhibit this behavoiur (how sad!  Embarrassed )


Quote
I've sent you a PM about the balance Smiley
Thank you for your support!
legendary
Activity: 971
Merit: 1000
It is not clear why on most faucets I simply get the referral payout once over 1k *without* manually requesting a payout, but not in these cases.

And of course there's the issue with the strange balance...   Undecided

The FaucetBOX.com has nothing to do when a faucet sends you a referral payout or how much does it send. And it depends on the particular faucet when it'll do that. Faucet in a Box script requires you to manually request a payout, but some custom scripts don't. I'm not sure how Microfaucet works, I'd have to check that.

I've sent you a PM about the balance Smiley
member
Activity: 83
Merit: 10

Hmm... let's try with an example:
1. there's a faucet, which gives a constant 500 satoshi and has 20% referral
2. you create a referral link and share it all over the Internet
3. 100 people uses your link, each requesting prize 2 times. You get 20% * 500 = 100 satoshi for every prize request from every people that used your link. That totals to 100 people * 2 times * 100 satoshi = 20k satoshi.
4. You visit this faucet, claim a prize and you get 500 satoshi normal prize + 20k satoshi for referrals.

If you'd wait twice as long time and everyone of these 100 people claimed a prize 2 more times, you'd get 40k satoshi when requesting your prize.

Is that clear now?
This is crystal clear.

It is not clear why on most faucets I simply get the referral payout once over 1k *without* manually requesting a payout, but not in these cases.

And of course there's the issue with the strange balance...   Undecided
legendary
Activity: 971
Merit: 1000
It looks allright to me. On most faucets (those based on Faucet in a Box and I think Microfaucet too) you get the referral earnings as a bonus to the normal payout and they're splited, that's why you see 2 payouts for each faucet. Or is there something else that you think it's broken?
We completely grasp this, as we run a (quite successful) faucet list that lives on referrals. But we find the amount of the referrals quite "peculiar": 95k? 48k? 500? Shouldnt they be all around 1k?

Hmm... let's try with an example:
1. there's a faucet, which gives a constant 500 satoshi and has 20% referral
2. you create a referral link and share it all over the Internet
3. 100 people uses your link, each requesting prize 2 times. You get 20% * 500 = 100 satoshi for every prize request from every people that used your link. That totals to 100 people * 2 times * 100 satoshi = 20k satoshi.
4. You visit this faucet, claim a prize and you get 500 satoshi normal prize + 20k satoshi for referrals.

If you'd wait twice as long time and everyone of these 100 people claimed a prize 2 more times, you'd get 40k satoshi when requesting your prize.

Is that clear now?
member
Activity: 83
Merit: 10
It looks allright to me. On most faucets (those based on Faucet in a Box and I think Microfaucet too) you get the referral earnings as a bonus to the normal payout and they're splited, that's why you see 2 payouts for each faucet. Or is there something else that you think it's broken?
We completely grasp this, as we run a (quite successful) faucet list that lives on referrals. But we find the amount of the referrals quite "peculiar": 95k? 48k? 500? Shouldnt they be all around 1k?

Quote
However the wrong balance sounds bad. Can you send me your Bitcoin address so that I can investigate further?
PM sent, thank you.
legendary
Activity: 971
Merit: 1000
Is the referral option for faucets not working? using the "r=" parameter followed by my BTC address?

I do not seem to find the referral payments when checking the address although I know that the referral address has been used to claim with.

On most faucets (those based on Microfaucet and Faucet in a Box) you must go to the faucet and claim your prize. You'll get your referral earnings as a bonus to the usual prize.

I think there's something very wrong with FaucetBOX payout system. I experienced this behaviour multiple times (look at every referral amount shown below)



...and btw my balance is not over 150k as should have been just summing this amounts togerther, it's <100k. Roll Eyes

Could you please explain it?

It looks allright to me. On most faucets (those based on Faucet in a Box and I think Microfaucet too) you get the referral earnings as a bonus to the normal payout and they're splited, that's why you see 2 payouts for each faucet. Or is there something else that you think it's broken?
However the wrong balance sounds bad. Can you send me your Bitcoin address so that I can investigate further?
member
Activity: 83
Merit: 10
I think there's something very wrong with FaucetBOX payout system. I experienced this behaviour multiple times (look at every referral amount shown below)



...and btw my balance is not over 150k as should have been just summing this amounts togerther, it's <100k. Roll Eyes

Could you please explain it?
legendary
Activity: 1176
Merit: 1019
I do not give financial advice .. do your own DD
Please checkout our new Faucetbox faucet..

CryptoDrips (http://www.cryptodrips.com)

Right now payouts are between 99 and 500 Satoshi every 15 minutes.


Bittzy78
sr. member
Activity: 462
Merit: 250
Is the referral option for faucets not working? using the "r=" parameter followed by my BTC address?

I do not seem to find the referral payments when checking the address although I know that the referral address has been used to claim with.
full member
Activity: 500
Merit: 100

As you can read here: https://faucetbox.com/en/api the API requests HAVE to be POST, not GET (and adding query string to the URL means a GET request). It defaults to BTC if it doesn't find a currency parameter in POST data.
Retrieving BTC balance using GET request is an undocumented feature made for a compatibility with Microfaucet and you should not use it. Smiley

Ah, crap, then time to ditch the Microfaucet idea and start something better from the scratch.

Thanks anyway  Smiley
legendary
Activity: 971
Merit: 1000

As you can read here: https://faucetbox.com/en/api the API requests HAVE to be POST, not GET (and adding query string to the URL means a GET request). It defaults to BTC if it doesn't find a currency parameter in POST data.
Retrieving BTC balance using GET request is an undocumented feature made for a compatibility with Microfaucet and you should not use it. Smiley
full member
Activity: 500
Merit: 100
The update is finished and it looks like everything is okay Smiley. If you find any issue, please let me know.

Now you can finally list multiple faucets on our Faucets list using single account! Smiley. However if you want that, you should now use different API kay for each faucet. You can create new faucets in your Dashboard after logging in on FaucetBOX.com. All faucets share the same balance of coins.


Hey. I try to make multy-currency faucet but when I load the links below I always get the BTC balance:

https://faucetbox.com/api/v1/balance?api_key=KEY_HERE¤cy=BTC
https://faucetbox.com/api/v1/balance?api_key=KEY_HERE¤cy=LTC
https://faucetbox.com/api/v1/balance?api_key=KEY_HERE¤cy=DOGE
hero member
Activity: 504
Merit: 500
So I decided to check out FaucetBOX today. The steps seemed simple enough.

1. Download script and unpack it.
2. Open config.php file with any text editor and replace default values with your database connection parameters. You can get them from your hosting provider.
3. Upload all files to your server. Usually you can do that using FTP, SFTP or similar service.
4. Open your website.

Step 2 was a little more difficult for a newbie to faucets than they make it seem. But I got something working, first it said it couldn't connect to the database, but I created a new MySQL database, and it connected with the username/password, etc.

But after uploading everything I see a bunch of errors, and I contacted support, and they asked me a few questions, but they may be stumped.

So I was hoping someone here might have an idea.

(Keep in mind, it doesn't show errors normally, but the support person said to show the errors on the screen so here they are)

Notice: Undefined index: currency in /home/makingm1/public_html/faucet/index.php on line 730
Notice: Undefined index: solvemedia_challenge_key in /home/makingm1/public_html/faucet/index.php on line 733
Notice: Undefined index: recaptcha_public_key in /home/makingm1/public_html/faucet/index.php on line 748
Notice: Undefined index: rewards in /home/makingm1/public_html/faucet/index.php on line 791
Notice: Undefined index: name in /home/makingm1/public_html/faucet/templates/SpaceRacket/index.php on line 278
Notice: Undefined index: short in /home/makingm1/public_html/faucet/templates/SpaceRacket/index.php on line 279
Notice: Undefined index: referral in /home/makingm1/public_html/faucet/templates/SpaceRacket/index.php on line 328

And I also get this "FAUCET DISABLED. Go to admin page and fill all required data!" (which was the original error when the other errors were hidden), going to the admin page doesn't save any changes.
full member
Activity: 210
Merit: 100
Need To Contact Me? Go To My Site!
The update is finished and it looks like everything is okay Smiley. If you find any issue, please let me know.

Now you can finally list multiple faucets on our Faucets list using single account! Smiley. However if you want that, you should now use different API kay for each faucet. You can create new faucets in your Dashboard after logging in on FaucetBOX.com. All faucets share the same balance of coins.

Great update!  Wink

I think I might move one of my biggest faucets to FaucetBox soon  Wink

newbie
Activity: 23
Merit: 0
The update is finished and it looks like everything is okay Smiley. If you find any issue, please let me know.

Now you can finally list multiple faucets on our Faucets list using single account! Smiley. However if you want that, you should now use different API kay for each faucet. You can create new faucets in your Dashboard after logging in on FaucetBOX.com. All faucets share the same balance of coins.

Smiley awesome the update i like it thanks
legendary
Activity: 971
Merit: 1000
The update is finished and it looks like everything is okay Smiley. If you find any issue, please let me know.

Now you can finally list multiple faucets on our Faucets list using single account! Smiley. However if you want that, you should now use different API kay for each faucet. You can create new faucets in your Dashboard after logging in on FaucetBOX.com. All faucets share the same balance of coins.
legendary
Activity: 971
Merit: 1000
I plan about 30 minutes maintenance time for update today, sorry for inconvenience. Faucets will show a friendly message about it after user tries to get coins.
legendary
Activity: 971
Merit: 1000
Not quite.  I made the mistake of putting faucetinabox-r31/ in /var/www and then made a symlink from /var/www/faucetinabox-r31/index.php to /var/www/index.php.  That symlink wrecked the php code's idea of where things are supposed to be.

I'm glad you've worked it out Smiley. I'll check if I can do something about it later.

Feature request: Could you make it such that the user can put a chunk of code in the middle of the page just after or just before ?

You can always do that manually, just edit templates/YOUR_TEMPLATE/index.php .

newbie
Activity: 10
Merit: 0
Feature request: Could you make it such that the user can put a chunk of code in the middle of the page just after or just before ?
Pages:
Jump to: