Your source for Cardano testnet tokens
TokenWell is a modern, developer-friendly platform for minting custom test tokens on Cardano Preview and Preprod networks. Built with Next.js, Aiken, and Lucid Evolution.
- β‘ Instant Minting - Create test tokens in seconds
- π Secure - Smart contract validated with comprehensive tests
- π¨ Modern UI - Beautiful, responsive interface with purple theme
- π Dual Network - Support for Preview and Preprod testnets
- π Free to Use - No fees, no limits (testnet only)
- Node.js 20+
- pnpm (recommended) or npm
- Blockfrost API keys (free at blockfrost.io)
- Testnet wallet with seed phrase
# Clone the repository
git clone <your-repo-url>
cd TokenWell
# Install dependencies
pnpm install
# Set up environment variables
cp .env.example .env.local
# Edit .env.local with your actual values
# Run development server
pnpm dev-
Get Blockfrost API Keys:
- Visit blockfrost.io
- Create free account
- Create projects for Preview and Preprod
- Copy API keys to
.env.local
-
Set Up Platform Wallet:
- Generate new testnet wallet
- Save seed phrase to
.env.local - Extract public key hash (PKH)
- Fund wallet with testnet ADA from faucet
-
Configure
.env.local:NEXT_PUBLIC_BLOCKFROST_API_KEY_PREVIEW=preview_your_key NEXT_PUBLIC_BLOCKFROST_API_KEY_PREPROD=preprod_your_key PLATFORM_SEED=your 24 word seed phrase OPERATOR_PKH=your_public_key_hash NEXT_PUBLIC_NETWORK=Preview
- Frontend: Next.js 15 + TypeScript + TailwindCSS
- Smart Contracts: Aiken (Plutus V3)
- Blockchain Library: Lucid Evolution
- API Provider: Blockfrost
TokenWell/
βββ app/ # Next.js app directory
β βββ api/mint/ # Minting API endpoint
β βββ page.tsx # Main page
β βββ layout.tsx # Root layout
β βββ globals.css # Global styles
βββ components/ # React components
β βββ MintForm.tsx # Main minting form
βββ lib/ # Utilities and logic
β βββ lucid.ts # Lucid initialization
β βββ minting.ts # Minting transaction logic
β βββ utils.ts # Helper functions
βββ tokenwell-sc/ # Aiken smart contracts
β βββ validators/ # Validator scripts
β βββ lib/ # Contract libraries
β βββ plutus.json # Compiled blueprint
βββ .env.local # Environment variables (not committed)
The TokenWell minting policy is a simple, secure Plutus V3 validator that:
- β Requires operator signature for minting
- β Validates token name and quantity
- β Ensures correct mint amount
- β Prevents unauthorized minting
Testing:
cd tokenwell-sc
aiken check # Run 21 comprehensive tests
aiken build # Compile validatorAll tests pass β (21/21)
TokenWell features a modern, tech-forward design with:
- Purple Theme - Vibrant electric purple (#8B5CF6)
- Dark Mode - Easy on the eyes
- Smooth Animations - Glow effects and transitions
- Responsive - Works on all devices
- Accessible - WCAG compliant
See THEME.md for complete design system.
- Visit the app (http://localhost:3000)
- Enter token details:
- Token name (e.g., "tUSDM")
- Quantity (e.g., 10000)
- Recipient address (testnet)
- Network (Preview/Preprod)
- Click "Mint Tokens"
- Receive transaction hash
- View on Cardanoscan
pnpm devpnpm build
pnpm startcd tokenwell-sc
aiken check # Run tests
aiken build # Compile
aiken docs # Generate docspnpm lint # Run ESLint
pnpm format # Format with Prettier- Push to GitHub
- Import project in Vercel
- Add environment variables
- Deploy!
NEXT_PUBLIC_BLOCKFROST_API_KEY_PREVIEW=***
NEXT_PUBLIC_BLOCKFROST_API_KEY_PREPROD=***
PLATFORM_SEED=*** # Keep secret!
OPERATOR_PKH=***
NEXT_PUBLIC_NETWORK=Preview.env.local or expose PLATFORM_SEED!
Mint test tokens.
Request:
{
"tokenName": "tUSDM",
"quantity": 10000,
"recipientAddress": "addr_test1...",
"network": "Preview"
}Response:
{
"success": true,
"txHash": "abc123...",
"message": "Tokens minted successfully!"
}Contributions welcome! Please:
- Fork the repository
- Create feature branch (
git checkout -b feature/amazing) - Commit changes (
git commit -m 'Add amazing feature') - Push to branch (
git push origin feature/amazing) - Open Pull Request
MIT License - see LICENSE for details
- Aiken - Smart contract language
- Lucid Evolution - Cardano library
- Blockfrost - Blockchain API
- Cardano - The blockchain platform
- Website: [Your deployment URL]
- Documentation: PLAN.md
- Design System: THEME.md
- Smart Contract: tokenwell-sc/
For questions or issues:
- Open an issue on GitHub
- Join Cardano developer community
- Check Aiken Discord
Built with β€οΈ for the Cardano community β’ Testnet only β’ Not for production use
