This is a cryptocurrency testnet faucet for Litecoin based on the cutting-edge web framework Next.js. Of course, the script can be amended for any other cryptocurrency as well. The faucet script utilizes Block.io API to send testnet coins to an address, eliminating expensive wallet hosting.
- Node.js (I use v20.10)
- Block.io Account (with your IP whitelisted)
- Run the code
npm install
- Copy
.env.example
to.env
- Fill in the credentials of Block.io in
.env
, see Section Environment Variables - Run the development server, making sure everything works as expected by running the command
npm run dev
- Build the project using
npm run build
- Start the project using
npm run start
BLOCKIO_APIKEY
: Block.io API Key, e.g., LTC TestnetBLOCKIO_ADDR_LABEL
: Block.io Address Label you specified when creating a new address, e.g., defaultBLOCKIO_SECRET_PIN
: Block.io Secret PIN
- Claim Testnet coins hourly
- Add database
- Add bot protection (hCAPTCHA)
- Deploy to Vercel.app
This is my first project in Next.js, however, I'm far more experienced in developing cryptocurrency faucets in PHP.