This is a faucet for private Ethereum testnet.
-
Create account file
faucet_account
inconfig
folder (Note that if multiple accounts exist, only the first account will be used as the faucet account). This can be done by, e.g., callingweb3.eth.accounts.create
, encrypting it with a passwordweb3.eth.accounts.wallet.encrypt
and then saving toconfig/faucet_account
. -
Create a config file
config.json
inconfig
folder. It should include properties in the following table.
Property | Description |
---|---|
rpcURL |
The ip address and port of your private testnet |
payoutFrequency |
The waiting time (in seconds) between consecutive payments. |
dailyLimit |
The daily supply limit (in ether) for a single account address. |
serverPort |
The port to run express server. Default to 8000. |
- A simple example:
{
"rpcURL": "http://12.34.56.78:90",
"payoutFrequency": 10,
"dailyLimit": 10,
"serverPort": 8000
}
You can customize the name of your testnet in the faucet-panel
component.
cd client
npm install
npm run build
cd ..
npx ts-node server/index.ts your-account-password