-
-
Notifications
You must be signed in to change notification settings - Fork 29
Hosting Faucet
This faucet runs on a Linux environment with PHP and MYSQL, and was tested on Ubuntu 15.04 with PHP 5.6.4 and MariaDB 5.5.
The faucet is set to work on the same server as the Qwertycoin wallet and Qwertycoin daemon.
The first step is to clone the Qwertycoin faucet repository.
git clone https://github.com/qwertycoin-org/qwertycoin-faucet.git
Next you will need to create a new database and create this table on it for the faucet to save all requests:
CREATE TABLE `payouts` (
`id` bigint(20) UNSIGNED NOT NULL,
`ip_address` varchar(45) NOT NULL,
`payout_amount` float NOT NULL,
`payout_address` varchar(100) NOT NULL,
`payment_id` varchar(75) NOT NULL,
`timestamp` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
ALTER TABLE `payouts`
ADD PRIMARY KEY (`id`);
ALTER TABLE `payouts`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;
After you create your database you will need to edit the config.php
file with all your custom parameters and database information.
The Qwertycoin faucet requires that you run qwertycoind and simplewallet. You can find the precompiled Qwertycoin binaries here.
Once it is downloaded you can start the Qwertycoin daemon like so:
./qwertycoind --restricted-rpc --enable-cors=* --enable-blockchain-indexes --rpc-bind-ip=0.0.0.0
Now start simplewallet and follow the steps to create a wallet. Make sure to write down your private keys and store them in a safe place.
For the faucet to be able to communicate with the Qwertycoin wallet, you need to run simplewallet like so:
./simplewallet --wallet-file=walletName --pass=password --rpc-bind-port=18070 --rpc-bind-ip=127.0.0.1
Note: Run this command after you have already created a wallet.
-
wallet.bin
needs to be the wallet file name that you enter when you created your wallet. -
password
needs to be the password to open your wallet -
rpc-bind-port
andrpc-bind-ip
can be changed if so, you need to edit index.php and request.php (Please don't edit, as you may end up opening the wallet rpc to the public)
To keep qwertycoind and simplewallet running in the background you can use the screen
command.
Advertisements can be edited in the index.php
file. They are between these lines for an easy location:
<!-- ADS ADS ADS ADS ADS ADS ADS ADS ADS -->
<!-- ADS ADS ADS ADS ADS ADS ADS ADS ADS -->
After all these steps you should be ready to go.
- A01. | Contributing
- A02. | Getting Started
- A03. | Qwertycoin Community
- A04. | Qwertycoin Voting
- A05. | Qwertycoin API
- B01. | Generating a Wallet
- B02. | Making a Paper Wallet
- B03. | Wallet Backup
- B04. | Wallet Recovery
- B05. | Wallet Update
- B06. | Using CLI Wallet
- B07. | Using RPC Wallet
- B08. | Using GUI Wallet
- B09. | Using Zero Wallet
- B10. | Using Web Wallet
- B11. | Using Mobile Wallet
- B12. | RPC Wallet API
- B13. | Sign and verify messages
- C01. | Start Masternode
- C02. | Fix Sync Issues
- C03. | Load Checkpoints
- C04. | JSON RPC API
- C05. | HTTP RPC API
- D01. | XMR Stak Guide
- D02. | XMR Stak Linux Guide
- D03. | XMRIG Guide
- D04. | Mining with SBC
- D05. | Cloud Mining
- D06. | Mobile Mining
- D07. | Using a Mining Pool
- D08. | Creating a Mining Pool
- E01. | How to trade QWC on Crex24
- E02. | How to trade QWC on Bitexlive
- E03. | How to trade QWC on Bisq
- G01. | Hosting Block Explorer
- G02. | Hosting Faucet
- G03. | Hosting Web Wallet
- G04. | How to use the QWC Faucet