Go to file
Viktor Baranov ef5bd2fa29 Update npm packages 2022-08-08 17:58:59 +03:00
public Merge pull request #19 from ligi/prefill_address 2019-03-28 21:40:44 +03:00
src Mass refactoring, simplification of build procedure, README update 2019-02-08 16:30:29 +03:00
.gitignore Fixed responsiveness issue 2019-03-20 23:26:35 +08:00
LICENSE added MIT license 2017-07-05 15:04:16 -07:00
README.md Mass refactoring, simplification of build procedure, README update 2019-02-08 16:30:29 +03:00
config.json.example Mass refactoring, simplification of build procedure, README update 2019-02-08 16:30:29 +03:00
gulpfile.js Update npm packages 2022-08-08 17:58:59 +03:00
index.js Mass refactoring, simplification of build procedure, README update 2019-02-08 16:30:29 +03:00
package-lock.json Update npm packages 2022-08-08 17:58:59 +03:00
package.json Update npm packages 2022-08-08 17:58:59 +03:00

README.md

Sokol POA Network faucet

Building from source

  1. Clone repository
git clone https://github.com/poanetwork/poa-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. Sokol POA Network faucet will be launched at http://localhost:5000

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://core.poa.network",
      "account": "The address from which the funds will be drained",
      "privateKey": "Private key of the account"
    },
    "dev": {
      ...
    }
  }
}