Faucet v0.11.2 release notes
- Version: 0.11.2
- Date: 2026-01-28
- Environments: Preview, PreProd
High-level summaryβ
The Midnight Faucet is a token distribution service for the Midnight Network testnet environments. It enables developers and testers to request test tokens for their wallets, supporting both web-based and programmatic access.
Audienceβ
This release is relevant for:
- Developers building and testing DApps on the Midnight Network
- Testers who need test tokens for Preview or PreProd environments
- Teams integrating Faucet functionality into their testing pipelines
- Operators deploying Faucet infrastructure
New featuresβ
Below are the new features introduced in this release:
Faucet serverβ
HTTP server that handles token distribution requests. Manages rate limiting, CAPTCHA verification, and asynchronous task processing for token transfers. Exposes REST API endpoints for token requests and status polling.
Faucet UIβ
React-based web interface for requesting test tokens. Integrates Cloudflare Turnstile for CAPTCHA protection and provides real-time status updates for token requests.
Faucet clientβ
TypeScript client library for programmatic faucet access. Enables automated testing workflows and integration with CI/CD pipelines.
Example:
import { FaucetClient } from "@midnight-ntwrk/faucet-client";
const client = FaucetClient("http://localhost:5300/api");
const authToken = await client.login("<username>", "<password>");
const initialized = client.init(authToken);
const { transactionIdentifier } = initialized.requestTokens("<my wallet address>");
Rate limitingβ
Daily request limits per wallet address to ensure fair distribution of test tokens. Automatically resets at the start of each day (UTC).
CAPTCHA protectionβ
Cloudflare Turnstile integration to prevent automated abuse of the faucet service.
Task queueβ
Asynchronous task processing system for handling token distribution requests. Supports polling-based status updates and error recovery.
Metrics and monitoringβ
Prometheus-compatible metrics endpoint for monitoring faucet health, request rates, and system performance.
New features requiring configuration updatesβ
Here are the new features requiring configuration updates:
Database connectionβ
The faucet requires PostgreSQL for persisting rate limits, task state, and request history.
Required updates:
- Configure PostgreSQL connection string.
- Run database migrations.
Node endpointβ
Required for submitting token transfer transactions to the network.
Required updates: Configure Midnight Node WebSocket endpoint.
Indexer endpointβ
Required for wallet synchronization and balance verification.
Required updates: Configure Midnight Indexer GraphQL endpoint.
CAPTCHA configurationβ
CAPTCHA verification fails without valid Turnstile credentials.
Required updates:
- Configure Cloudflare Turnstile site key (UI).
- Configure Cloudflare Turnstile secret key (Server).
Deprecationsβ
No deprecations for this release.
Breaking changesβ
No breaking changes for this release.
Known issuesβ
Issue: Rate limit may not immediately reset at midnight UTC.
Description: Due to caching, the rate limit reset may be delayed by a few minutes after midnight UTC.
Workaround: Wait a few minutes after midnight or restart the server to clear the cache.
Packagesβ
| Package | Version | Description |
|---|---|---|
@midnight-ntwrk/faucet-server | 0.11.2 | HTTP server for token distribution with REST API, rate limiting, and async task processing. |
@midnight-ntwrk/faucet-ui | 0.11.2 | React web interface for requesting test tokens with CAPTCHA protection. |
@midnight-ntwrk/faucet | 0.11.2 | Core faucet library with wallet integration and token transfer logic. |
@midnight-ntwrk/faucet-client | 0.11.2 | TypeScript client library for programmatic faucet access. |
@midnight-ntwrk/faucet-auth | 0.11.2 | JWT-based authentication for faucet API access. |
@midnight-ntwrk/faucet-internal-api | 0.11.2 | Shared API types and codecs for client-server communication. |
@midnight-ntwrk/faucet-utils | 0.11.2 | Common utilities for functional programming patterns and testing. |
Links and referencesβ
- GitHub repository: midnightntwrk/midnight-faucet
- Faucet documentation: Acquire test tokens
- Wallet SDK documentation: Wallet developer guide
Fixed defectsβ
- Chore/fix health tests #407