Backend API for SMILE testnet automation bot.
- ✅ Testnet discovery & scoring
- ✅ Eligibility checking
- ✅ Custom task parsing
- ✅ CORS enabled
- ✅ Free hosting on Vercel
-
Upload to GitHub
- Create new repo:
smile-backend - Upload these files
- Create new repo:
-
Deploy on Vercel
- Go to vercel.com
- New Project → Import
smile-backend - Click Deploy
- Done!
-
Copy Your URL
- You'll get:
https://smile-backend-xyz.vercel.app - Use this in your frontend settings
- You'll get:
# Install Vercel CLI
npm i -g vercel
# Deploy
cd backend
vercel --prodHealth check
{
"status": "online",
"name": "SMILE Backend",
"version": "2.0.0"
}Get all active FREE testnets
[
{
"id": "scroll-sepolia",
"name": "Scroll Sepolia",
"score": 95,
"tasks": [...]
}
]Get only new testnets (excluding completed)
Check wallet eligibility
{
"addresses": ["0x123...", "0x456..."]
}Response:
[
{
"address": "0x123...",
"eligible": true,
"amount": "1250.50",
"testnet": "scroll-sepolia"
}
]Parse custom task text
{
"text": "Claim scroll faucet, swap 0.1 ETH to USDC"
}Response:
{
"testnet": "Scroll Sepolia",
"network": "scroll",
"steps": [
{
"action": "claim_faucet",
"canAutomate": true
},
{
"action": "swap_tokens",
"amountMin": 0.09,
"amountMax": 0.11,
"canAutomate": true
}
]
}None required! Works out of the box.
npm install
npm startServer runs on http://localhost:3000
$0/month on Vercel free tier
- 100GB bandwidth
- 100K requests/day
- Serverless functions
- express: Web server
- cors: Cross-origin requests
Total size: ~1MB
- Testnets are currently mocked
- In production, add real scrapers for:
- CryptoRank
- Layer3
- Galxe
- Twitter (via Nitter)
- Add cron jobs for automatic updates
- Add database for user data (optional)
Issues? Check:
- Vercel deployment logs
- Browser console errors
- CORS is enabled ✓
- Endpoints return JSON ✓