-
Test Script:
test-smart-money-wallets.ts- Tests database connection
- Tests smart money relay service
- Sends test alerts to Discord
- Sends test alerts to Telegram
- Shows system health
-
Helper Script:
get-telegram-chatid.ts- Quickly retrieves Telegram Chat ID
- Shows all available chats
-
NPM Commands:
npm run test:smart-wallets- Run full test suitenpm run get-telegram-chatid- Get Telegram Chat ID
-
Documentation:
SMART_MONEY_TEST_GUIDE.md- Detailed testing guideSMART_MONEY_QUICK_SETUP.md- 3-step quick start
✅ Smart Money Relay: WORKING
- Published event successfully
- Event received by listener
- Total events: 1
⚠️ Database: Not seeded yet
- Connection available but no wallets loaded
- Need to run: npm run seed:smart-wallets
⚠️ Discord: Not configured
- Need: DISCORD_ALPHA_WEBHOOK in .env
⚠️ Telegram: Partially configured
- Token is set
- Need: TELEGRAM_ALPHA_CHAT_ID in .env
Get webhook URL:
- Discord Server → Text Channel → Settings (gear icon)
- Integrations → View Webhooks → New Webhook
- Name it: "Smart Money Alerts"
- Copy Webhook URL
Add to .env:
DISCORD_ALPHA_WEBHOOK=https://discord.com/api/webhooks/1234567890/abcdefg...Method A: Using Bot (Easiest)
- Add your bot to the Telegram group
- In the group, send:
/chatid - Bot will reply with the Chat ID
- Copy the ID
Method B: Manual
- Add bot to group
- Send any message in group
- Visit in browser:
https://api.telegram.org/bot<YOUR_BOT_TOKEN>/getUpdates - Find
"chat":{"id":-1001234567890} - Copy that ID (with minus sign)
Add to .env:
TELEGRAM_ALPHA_CHAT_ID=-1001234567890Your .env should have:
# Database
DATABASE_URL=your_railway_postgres_url
# Discord
DISCORD_ALPHA_WEBHOOK=https://discord.com/api/webhooks/...
# Telegram
TELEGRAM_BOT_TOKEN=1234567890:ABCdefGHIjklMNOpqrsTUVwxyz
TELEGRAM_ALPHA_CHAT_ID=-1001234567890# Edit .env file and add:
# - DISCORD_ALPHA_WEBHOOK
# - TELEGRAM_ALPHA_CHAT_IDnpm run seed:smart-walletsThis loads 100 elite wallets with shorthand names.
npm run test:smart-walletsLook for test messages in:
- Discord: Embed with "🧪 SMART MONEY TEST ALERT"
- Telegram: Markdown message with wallet details
🧪 SMART MONEY TEST ALERT
👤 Wallet: KOL Sniper (Test Wallet)
4aKx7fV9r4e8...
📊 Performance
Win Rate: 82%
Profit: $4.2M
Influence: 95/100
🪙 Token Activity
Token: BtQQxvS6RNm5...
Action: BUY
Age: 5 minutes
🎯 Directive: 🚨 ACCUMULATION SIGNAL
📝 Notes
KOL sniper; early Pump.fun entrant.
This wallet has historically identified
winning memecoins with 82% accuracy.
⏰ Nov 29, 2025 10:30 AM
🧪 SMART MONEY TEST ALERT
🧠 Smart Money Activity Detected
👤 Wallet: KOL Sniper (Test)
4aKx7fV9r4e8...
📊 Performance:
• Win Rate: 82%
• Profit: $4.2M
• Influence: 95/100
🪙 Token Activity:
• Token: BtQQxvS6RNm5...
• Action: BUY
• Age: 5 minutes
🎯 Directive: 🚨 ACCUMULATION SIGNAL
📝 Notes:
KOL sniper; early Pump.fun entrant.
This wallet has historically identified
winning memecoins with 82% accuracy.
⏰ Nov 29, 2025 10:30 AM
# Get Telegram Chat ID
npm run get-telegram-chatid
# Seed smart wallets to database
npm run seed:smart-wallets
# Run comprehensive test (sends alerts)
npm run test:smart-wallets
# Start bot server for live monitoring
npm run dev✅ Database connected: Found 100 active smart wallets
✅ Relay service is working!
✅ Discord test alert sent successfully!
✅ Telegram test alert sent successfully!
⚠️ DISCORD_ALPHA_WEBHOOK not configured
⚠️ Telegram not configured
❌ Database connection failed
-
Database Check
- Connects to PostgreSQL
- Queries
smart_walletstable - Shows first 5 wallets if found
-
Relay Service Test
- Creates mock smart money event
- Publishes through internal event bus
- Verifies event delivery
- Shows statistics
-
Discord Alert
- Sends formatted embed to webhook
- Includes wallet details
- Shows performance metrics
- Uses color-coded directive
-
Telegram Alert
- Sends Markdown message to chat
- Optimized for mobile viewing
- Includes all key information
-
Health Check
- Verifies environment variables
- Shows configuration status
- Reports system readiness
Test is successful when you see:
- ✅ Database shows smart wallets (or "not seeded yet")
- ✅ Relay publishes and receives events
- ✅ Discord channel receives test embed
- ✅ Telegram group receives test message
- ✅ Terminal shows green checkmarks
Fix:
- Verify URL starts with
https://discord.com/api/webhooks/ - Check bot has "Send Messages" permission
- Test webhook directly in browser by adding
/slackto URL
Fix:
- Verify bot is admin in group/channel
- Check Chat ID has minus sign for groups:
-1001234567890 - Make sure
TELEGRAM_BOT_TOKENis correct
Fix:
- Check
DATABASE_URLin.env - If local: Start PostgreSQL service
- If Railway: Copy URL from dashboard
Fix:
npm run seed:smart-walletstest-smart-money-wallets.ts- Main test scriptget-telegram-chatid.ts- Chat ID helperSMART_MONEY_TEST_GUIDE.md- Detailed guideSMART_MONEY_QUICK_SETUP.md- Quick startSMART_MONEY_TESTING_SUMMARY.md- This file
Once you see test alerts in both channels:
-
Start Live Monitoring
npm run dev
-
System Will Automatically:
- Load 100 smart wallets from database
- Monitor blockchain activity via webhooks
- Send real alerts when wallets buy tokens
- Include shorthand names in all messages
-
You'll Receive Alerts Like:
🧠 SMART MONEY ALERT 👤 Jito Bundler bought $NEWTOKEN Win Rate: 81% | Profit: $2.9M 🚨 PRIORITY WATCH This wallet front-runs Pump.fun launches with Jito bundles. 81% win rate.
| Component | Status | Notes |
|---|---|---|
| Database Schema | ✅ Ready | smart_wallets table exists |
| 100 Wallets | ✅ Defined | In seed script with shorthand names |
| Relay Service | ✅ Working | Event bus tested successfully |
| Alpha Alerts | ✅ Integrated | Queries smart_wallets table |
| Test Script | ✅ Created | Sends test alerts |
| Discord | Need webhook URL | |
| Telegram | Need chat ID |
✅ Test infrastructure is complete
✅ Relay service verified working
✅ 100 wallets ready to load
✅ Then run test to verify alerts
Quick Start:
- Add webhooks to
.env - Run
npm run test:smart-wallets - Check Discord and Telegram for test messages
- If working, run
npm run devto go live!
Status: ✅ Ready to test (webhooks needed)