Hi guys,
Can anyone advise me in installing a testnet bitcoin faucet? I already have a webhosting and I can use various CMS (e.g. WP).
Thanks
I'd probably just install bitcoin core, and run a daemon in testnet mode... Then i would create a php/mysql script to use json-rpc in order to generate transactions when a claim was made. Especially when talking about testnet, it's all pretty basic stuff. Just a form an a captcha. When info is posted, enter the ip and timestamp into the db and check if a claim can be made. If true, either make a json-rpc call, or store the info into a db and run a cronjob to query the db and make the transaction on an hourly/daily basis)
You could probably use an open source script like this one to do the same thing:
https://github.com/tuaris/FaucetRPC(disclaimer: just found this script by searching github, i have no idear if this one is secure).
EDIT: if it's 100% sure testnet only, i'd be willing to invest a couple of hours in order to write something up whenever i have some time (might take a couple of weeks tough)
Would be awesome, thanks. Yes, pure testnet
I'll check out the link too!
Since i had a couple of hours today, i quickly made a proof of concept testnet faucet:
https://github.com/mocacinno/simple_testnet_faucetIt's a PROOF OF CONCEPT TESTNET FAUCET, DO NOT RUN IT ON THE MAIN NET!!!!! It will work, but your funds will be drained in mere daysI did nothing,
repeat nothing, to avoid abuse of this system, nor did i check for security vulnerabiltys...
If you want to use this faucet as a mainnet faucet, you'll have to extend/fix/patch this code and at least:
- check for possible vulnerabilitys
- add ref system (add a table, insert each address as a user, keep track of the referring user, when running cronjob.php insert record in the faucet table to pay out refferer)
- kick bots
- kick proxy's
- kick VPN's
- kick tor
- create blacklist
- create admin page
- add extra checks: 1 claim per ip, 1 claim per address,...
- add captcha
- make a nice gui
- add an installation script
- add bitcoin.conf sample
- implement session
- implement ad management
- test the hell out of it
- ...