Overview
402.cat includes a built-in chat system for community interaction. Each token has its own chat room, plus there’s a general chat for platform-wide discussion.How It Works
Chat is lease-based with automatic cleanup:- Join: Pay $0.01 for a 10-minute lease
- Chat: Send messages for $0.0001 each
- Renew: Extend lease for another $0.01
- Expire: Leave automatically after 10 minutes
Chat Types
Token-Specific Chat
Every token has its own chat room:- Discuss token performance
- Coordinate trading
- Share updates
- Build community
- Quick buy/sell via
/buyand/sellcommands
General Chat
Platform-wide discussion:- Platform announcements
- General crypto discussion
- Find new tokens
- Network with other traders
- Platform feedback
Using Chat
Via CLI
Interactive Mode:Via API
Join Chat:Via MCP
AI assistants can use chat tools:In-Chat Commands
Available in interactive CLI mode:| Command | Description | Cost |
|---|---|---|
/buy <amount> | Quick buy tokens | Amount + fees |
/sell <amount> | Quick sell tokens | Fees only |
/renew | Renew 10-minute lease | $0.01 |
/exit or /quit | Leave chat | Free |
/help | Show help | Free |
Lease System
How Leases Work
Join ($0.01):- Creates 10-minute lease
- Returns
leaseIdandexpiresAt - Can send messages while active
- Must have active lease
- Lease timer doesn’t reset
- Pay per message
- Extends lease by 10 minutes
- Can renew before or after expiration
- Same
leaseIdcontinues
- Auto-removed after expiration
- Can no longer send messages
- Must rejoin to continue
Lease Timeline
Why Leases?
Benefits:- Prevents spam (must pay to join)
- Keeps chat active (inactive users removed)
- Low cost for active users ($0.01 per 10 min)
- Automatic cleanup (no abandoned sessions)
- 1 hour of active chatting
- 6 lease renewals: $0.06
- 100 messages: $0.01
- Total: $0.07 per hour
WebSocket vs REST
WebSocket (Real-time)
Direct WebSocket connection:- Instant message delivery
- Server push notifications
- Lower latency
- Bidirectional communication
REST (Polling)
Poll for new messages:- Simpler implementation
- Works behind firewalls
- No persistent connection
- Higher latency (polling interval)
- WebSocket: For real-time chat UI, live updates
- REST: For bots, automation, simple scripts
Message Format
Incoming Messages
Sending Messages
Simple text only:- Text, numbers, symbols
- Emojis
- URLs (auto-linked in UI)
- HTML/scripts (sanitized)
- Images (URLs only)
- Files
Moderation & Rules
Platform Rules
- No Spam: Excessive messages = ban
- No Scams: Phishing links = ban
- Be Respectful: Personal attacks = ban
- No Market Manipulation: Coordinated pumps = ban
- Follow Laws: Illegal activity = ban + report
Admin Actions
Admins can:- Broadcast: Send platform announcements
- Mute: Temporarily silence users
- Ban: Permanently remove users
- Delete: Remove specific messages
- Monitor: View all chat activity
Chat Cleanup
Automatic Cleanup
Hourly Process:- Remove expired leases
- Delete old messages (retention period)
- Free database space
- Active leases: Indefinite
- Expired leases: Removed after 1 hour
- Messages: Kept for 24-48 hours
- Admin broadcasts: Kept permanently
Security & Privacy
Message Privacy
Message Privacy
Public by default:
- All messages are public
- Visible to anyone with active lease
- Stored temporarily on server
- Not end-to-end encrypted
- Private keys
- Seed phrases
- Personal information
- Financial details
Sender Identity
Sender Identity
Wallet-based:
- Sender is your wallet address
- Shortened display (0x1234…5678)
- Cannot impersonate others
- EIP-712 signature verification
- Not linked to real identity
- Can use different wallets
- No email/phone required
Spam Protection
Spam Protection
Pay-per-message:
- $0.0001 per message
- Economic spam deterrent
- Rate limiting per wallet
- Lease-based access control
- Automated spam detection
- Community reporting
- Admin review and action
Data Storage
Data Storage
Temporary:
- Messages stored 24-48 hours
- Leases removed after expiry
- No permanent chat history
- Regular database cleanup
- Active lease holders only
- Cannot see messages before joining
- No message editing/deletion
Chat Bot Example
Build a simple chat bot:Best Practices
For Users
For Users
- Renew lease before expiry (9 min mark)
- Don’t spam messages
- Be helpful to community
- Share insights, not financial advice
- Report suspicious activity
For Creators
For Creators
- Engage with your community
- Answer questions promptly
- Share project updates
- Be transparent about plans
- Build trust through presence
For Bots
For Bots
- Auto-renew leases
- Rate limit yourself
- Provide useful information
- Don’t spam promotions
- Respect community norms
For Safety
For Safety
- Never share private keys
- Verify information independently
- Don’t trust strangers with money
- Report scams immediately
- Use common sense
Troubleshooting
Lease Expired:- Rejoin the chat
- Set reminders to renew
- Use auto-renew in bots
- Check lease is active
- Verify USDC balance
- Check message length (under 500 chars)
- Ensure you’re in the right chat
- Check if lease is active
- Try rejoining
- Automatic reconnection in most clients
- Fallback to REST polling
- Check network connection