This Faucet is based on https://github.com/poanetwork/poa-faucet
- Clone repository
git clone https://github.com/slockit/goerli-faucet
- Copy
config.json.example
toconfig.json
cp config.json.example config.json
- Update config.json
./config.json
(see config.json with placeholders below) - Update
./public/index.html
: Find<div class="g-recaptcha" data-sitekey="type your reCaptcha plugin secret here"></div>
line and type your reCaptcha plugin secret indata-sitekey
attribute. For more info, see - Install dependencies
npm install
from the project's root - Run faucet with
npm start
. the faucet will be launched athttp://localhost:5001
{
"environment": "switcher between configurations: 'prod' or 'dev'",
"debug": "switch on/off server logs: true or false",
"Captcha": {
"secret": "reCaptcha plugin secret"
},
"Ethereum": {
"etherToTransfer": "The number of milliEther to be sent from the faucet. For example, 500",
"gasLimit": "Transaction gas limit, for example, 21000",
"prod": {
"rpc": "JSON RPC endpoint. For example, https://rpc.slock.it/goerli",
"account": "The address from which the funds will be drained",
"privateKey": "Private key of the account"
},
"dev": {
...
}
}
}
You can also configure things by using environment variables:
ACCOUNT
- Ethereum account to send fund fromKEY
- Private key for that accountRPC
- RPC endpoint to use