This faucet aims to create transactions that can be used for the overlay address verification of bee nodes.
git clone https://github.com/ethersphere/onboarding-faucet.git
cd onboarding-faucetexport PRIVATE_KEY=...
npm run startexport PRIVATE_KEY=...
export FUND_BZZ_AMOUNT=1000000000000000 # 0.1 BZZ
export FUND_NATIVE_AMOUNT=10000000000000000 # 0.01 ETH
npm run start| Name | Default Value | Description |
|---|---|---|
| LOG_LEVEL | info |
Log level (critical, error, warn, info, verbose, debug). |
| RPC_URL | https://rpc.gnosischain.com |
URL of the RPC provider. |
| PRIVATE_KEY | undefined |
Private key used to create transactions and send tokens. |
| PORT | 3000 |
Port used by the faucet's http server. |
| HOSTNAME | localhost |
Hostname on which the faucet's http server listens to. |
| BZZ_ADDRESS | 0xdBF3Ea6F5beE45c02255B2c26a16F300502F68da |
Address of the BZZ contract. |
| FUND_BZZ_AMOUNT | 0 |
Amount of BZZ to send on the funding route. |
| FUND_NATIVE_AMOUNT | 0 |
Amount of native tokens (ETH, xDAI) to send on the funding route. |
| AUTH_TOKEN | undefined |
Authentication secret, disabled if not set (this secret is checked in the request header authorization). |
| Endpoint | Response code | Response text |
|---|---|---|
POST /faucet/overlay/:address |
200 |
{ blockHash: 'string', transactionHash: 'string', nextBlockHash: 'string', nextBlockHashBee: 'string' } |
400 |
{ error: 'invalid address' } |
|
500 |
Internal Server Error |
|
POST /faucet/fund/bzz/:address |
200 |
require("@ethersproject/abstract-provider").TransactionReceipt |
400 |
{ error: 'invalid address' } |
|
500 |
Internal Server Error |
|
503 |
{ error: 'amount not configured' } |
|
POST /faucet/fund/native/:address |
200 |
require("@ethersproject/abstract-provider").TransactionReceipt |
400 |
{ error: 'invalid address' } |
|
500 |
Internal Server Error |
|
503 |
{ error: 'amount not configured' } |
There are some ways you can make this module better:
- Consult our open issues and take on one of them
- Join us in our Discord chat in the #develop-on-swarm channel if you have questions or want to give feedback