Skip to content

Görli Testnet faucet to provide funds to bee clients

License

Notifications You must be signed in to change notification settings

eddiehazel/goerli-faucet

 
 

Repository files navigation

Görli Testnet faucet

This Faucet is based on https://github.com/poanetwork/poa-faucet

Building from source

  1. Clone repository
git clone https://github.com/slockit/goerli-faucet
  1. Copy config.json.example to config.json
cp config.json.example config.json
  1. Update config.json ./config.json (see config.json with placeholders below)
  2. 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 in data-sitekey attribute. For more info, see
  3. Install dependencies npm install from the project's root
  4. Run faucet with npm start. the faucet will be launched at http://localhost:5001

Server config.json (./config.json) with placeholders

{
  "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": {
      ...
    }
  }
}

Configure using environment variables

You can also configure things by using environment variables:

  • ACCOUNT - Ethereum account to send fund from
  • KEY - Private key for that account
  • RPC - RPC endpoint to use

About

Görli Testnet faucet to provide funds to bee clients

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • SCSS 67.1%
  • JavaScript 27.1%
  • HTML 5.3%
  • Dockerfile 0.5%