Skip to content
Athereum Network Faucet
JavaScript CSS HTML Shell
Branch: master
Clone or download
Pull request Compare This branch is 4 commits ahead of poanetwork:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
log
public updated with logging added Oct 17, 2019
src
.gitignore
LICENSE
README.md
config.json.example
gulpfile.js
index.js
logdash.sh
package-lock.json updated with logging added Oct 17, 2019
package.json updated with logging added Oct 17, 2019

README.md

Note: This repo was forked from Sokol POA Network faucet. Thank you POA network for your work on this project. https://github.com/poanetwork/poa-faucet

Athereum Network faucet

Building from source

  1. Clone repository
git clone https://github.com/ava-labs/athereum-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. Athereum faucet will be launched at http://localhost:80

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://ava.network:21015/ext/evm/rpck",
      "account": "The address from which the funds will be drained",
      "privateKey": "Private key of the account"
    },
    "dev": {
      ...
    }
  }
}
You can’t perform that action at this time.