A comprehensive Liquid Network testnet faucet and explorer with asset issuance capabilities, powered by LWK (Liquid Wallet Kit)
π Features β’ βοΈ Installation β’ π§ Configuration β’ πββοΈ Usage β’ π‘ API β’ π Links
- π° LBTC Faucet - Get Liquid Bitcoin testnet coins via LWK
- π§ͺ Test Asset Faucet - Receive custom test assets using LWK
- β‘ AMP Asset Faucet - Access AMP tokens
- π‘οΈ Rate Limiting - Built-in protection against abuse
- π§ LWK Integration - All transactions powered by Liquid Wallet Kit
- π Real-time Stats - Blockchain height, mempool size, disk usage
- π§± Block Explorer - Browse blocks with transaction details
- πΎ Mempool Viewer - Monitor pending transactions
- π Transaction Details - Full transaction information
- π¨ Custom Assets - Create your own Liquid assets using LWK
- π Reissuance Tokens - Control asset supply with LWK
- π Contract Support - Define asset metadata and properties
- π Domain Verification - Link assets to domains
- β
Pre-configured Domain - Use
liquidtestnet.comas a valid domain for any test token - β‘ LWK Transaction Builder - Native LWK transaction construction
- π€ Transaction Broadcasting - Submit raw transactions
- β Mempool Testing - Validate transactions before broadcast
- π OP_RETURN Support - Store data on-chain
- Python 3.8 or higher
- Liquid Elements node (testnet)
- LWK (Liquid Wallet Kit) - Core dependency for all Liquid operations
# 1. Clone the repository
git clone https://github.com/your-username/liquidtestnet.com.git
cd liquidtestnet.com
# 2. Create virtual environment
python3 -m venv venv3
source venv3/bin/activate # On Windows: venv3\Scripts\activate
# 3. Install dependencies
pip install -r requirements.txt
# 4. Configure the application (see Configuration section)
cp liquid.conf.example liquid.conf
# Edit liquid.conf with your settings
# 5. Run the application
python faucet.py- LWK (Liquid Wallet Kit) - β Core engine for all Liquid operations
- Flask - Web framework
- Flask-Limiter - Rate limiting
- WallyCore - Bitcoin/Liquid cryptographic library
- Bitcoin RPC - Elements node communication
Create a liquid.conf file with the following structure:
[GENERAL]
liquid_instance: LIQUID
[LIQUID]
host:
port:
username:
password:
wallet:
passphrase:
[AMP]
url:
username:
password:
token:
assetuuid:
[GDK]
mnemonic:
subaccount:
address:
amp0_user:
amp0_password:
amp0_assetid:
[LWK]
mnemonic:
address:
assetid:| Section | Description | Required | Purpose |
|---|---|---|---|
GENERAL |
Basic application settings | β | Defines which Liquid instance to use |
LIQUID |
Elements node RPC configuration | β | Connection to Liquid testnet node |
AMP |
Asset Management Protocol settings | β | For AMP token distribution |
GDK |
Green Development Kit (AMP0) settings | β | For AMP0 wallet integration |
LWK |
Liquid Wallet Kit configuration | β | Core LWK wallet and asset settings |
GENERAL Section:
liquid_instance: Must match one of the configured sections (e.g., "LIQUID")
LIQUID Section:
host: Elements node hostnameport: Elements node RPC port (typically 7041 for testnet)username: RPC usernamepassword: RPC passwordwallet: Wallet name (can be empty for default wallet)passphrase: Wallet passphrase (can be empty if no passphrase)
AMP Section (for AMP token support):
url: AMP server URLusername: AMP server usernamepassword: AMP server passwordtoken: AMP authentication tokenassetuuid: AMP asset UUID
GDK Section (for AMP0 integration):
mnemonic: AMP0 mnemonic phrasesubaccount: AMP0 subaccount identifieraddress: AMP0 wallet addressamp0_user: AMP0 usernameamp0_password: AMP0 passwordamp0_assetid: AMP0 asset ID
LWK Section:
mnemonic: 24-word mnemonic phrase for LWK walletaddress: LWK wallet addressassetid: Asset ID for test token distribution
For easy test token creation, you can use liquidtestnet.com as a pre-validated domain:
# Example: Create a test token using liquidtestnet.com domain
curl "http://localhost:8123/api/issuer?command=asset&asset_amount=1000&asset_address=tlq1q...&token_amount=100&token_address=tlq1q...&pubkey=02...&name=MyTestToken&ticker=MTT&precision=8&domain=liquidtestnet.com"LWK Benefits:
- β‘ Native Liquid Support - Built specifically for Liquid Network
- π Secure Transaction Building - LWK handles all cryptographic operations
- π― Simplified API - No need to understand low-level Liquid protocols
- β Pre-validated Domain - Eliminates domain verification setup for test tokens
This makes development and testing much faster with LWK's streamlined approach!
# Activate virtual environment
source venv3/bin/activate
# Start the faucet server
python faucet.pyThe server will start on http://0.0.0.0:8123
| Endpoint | Description |
|---|---|
/ |
Home page with blockchain stats |
/faucet |
Multi-asset faucet interface |
/explorer |
Block explorer |
/mempool |
Mempool transaction viewer |
/issuer |
Asset issuance interface |
/utils |
Transaction utilities |
/about |
About page |
GET /api/faucet?address=your_address&action=lbtcParameters:
address- Liquid address to receive fundsaction- Asset type (lbtc,test,amp)
Response:
{
"result": "Sent 100000 LBTC to address tlq1q...",
"balance": 5000000,
"balance_test": 1000000,
"balance_amp": 100
}GET /api/issuer?command=asset&asset_amount=1000&asset_address=tlq1q...&token_amount=100&token_address=tlq1q...&pubkey=02...&name=MyAsset&ticker=MA&precision=8&domain=liquidtestnet.comπ‘ Pro Tip: You can use liquidtestnet.com as the domain for any test token issuance. This domain is pre-configured and validated, making it easy to create test assets with LWK without needing to set up your own domain verification.
GET /api/statsGET /api/block?height=12345GET /api/transaction?txid=abc123...GET /api/mempool- π Live Site: liquidtestnet.com
- π Liquid Network: liquid.net
- π οΈ Elements Project: github.com/ElementsProject/elements
- πΌ LWK Documentation: github.com/Blockstream/lwk - Core technology powering this faucet
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
This is a testnet faucet for development and testing purposes only. The assets distributed have no real value and should not be used for production applications.
Made with β€οΈ for the Liquid Network community using LWK (Liquid Wallet Kit)