Skip to content
This repository was archived by the owner on Aug 25, 2026. It is now read-only.

Latest commit

 

History

74 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

onboarding-faucet

FOSSA Status js-standard-style

This faucet aims to create transactions that can be used for the overlay address verification of bee nodes.

Install

git clone https://github.com/ethersphere/onboarding-faucet.git
cd onboarding-faucet

Usage

Example

No funding

export PRIVATE_KEY=...

npm run start

Funding

export PRIVATE_KEY=...
export FUND_BZZ_AMOUNT=1000000000000000 # 0.1 BZZ
export FUND_NATIVE_AMOUNT=10000000000000000 # 0.01 ETH

npm run start

Environment variables

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).

API

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' }

Contribute

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

Maintainers

License

BSD-3-Clause

FOSSA Status

About

No description, website, or topics provided.

Resources

Code of conduct

Stars

3 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages