Built for the Solana Frontier Hackathon 2026 by @sansh07
SolGuard uses Claude AI to analyze your Solana transactions, detect threats, and keep your assets safe β in plain English, not technical jargon.
π Live Demo: sol-guard-khaki.vercel.app
Every day, Solana users lose millions of dollars to:
- Wallet drainers disguised as legitimate dApps
- Rug pulls from unknown smart contracts
- Forgotten token approvals giving dApps unlimited access to funds
- Phishing addresses that look legitimate but steal assets
Most users have no way to verify what a transaction will actually do before signing it.
SolGuard acts as an AI security layer between users and the Solana blockchain. Before you sign anything, SolGuard tells you exactly what will happen β in plain English.
| Feature | SolGuard | Blowfish | Pocket Universe | Step Finance |
|---|---|---|---|---|
| Plain English AI explanations | Claude AI | Approve/Reject only | Basic warnings | No |
| Security Score | 0-100 grade | No | No | Basic |
| Token Approval Manager | + Revoke | No | No | Yes |
| Address Reputation | AI powered | No | Basic | No |
| Pre-Transaction Simulation | simulateTransaction + AI | Yes | Yes | No |
| Open Source | Yes | No | No | No |
| Self-hostable | Yes | No | No | No |
| Works as standalone app | Yes | Browser extension only | Browser extension only | Yes |
| Tier | Price | What you get |
|---|---|---|
| Free | $0 | Devnet only, 10 AI analyses/day, basic security score |
| Pro | $9/month | Mainnet, unlimited analyses, real-time alerts, API access |
| Team | $29/month | Multiple wallets, team dashboard, priority support |
Why this works:
- 10 million+ active Solana wallets β even 0.1% converting to Pro = $9,000/month recurring revenue
- B2B angle: sell to Solana dApps (DEXs, NFT marketplaces, lending protocols) who want to embed SolGuard's security scanner into their own UI before users sign transactions
- Enterprise version for DAOs and DeFi protocols managing large treasuries
Get an overall wallet health score (0-100) powered by Claude AI. Analyzes your transaction history, token holdings, and behavioral patterns to give you a comprehensive security grade.
Click "Analyze" on any transaction in your history. Claude AI breaks down exactly what happened, flags suspicious patterns, and rates the risk level from Safe to Critical.
Before signing anything, paste a contract address or unsigned transaction. SolGuard runs it through Solana's native simulateTransaction RPC for mathematically accurate results, then Claude AI translates the verified logs into a human-readable report:
- Exact SOL balance changes (from real simulation)
- Token movements (in/out)
- Programs that will be called
- Any approvals being granted
- Overall risk verdict
See every token approval your wallet has granted to dApps. Revoke risky or forgotten approvals with one click β directly from the dashboard.
Paste any Solana wallet or contract address and get an instant reputation score. SolGuard first calls getAccountInfo to deterministically verify if the address is a program or wallet, its balance, owner, and data size β then Claude AI layers contextual risk analysis on top of these verified facts.
AI-generated insights about your wallet's security posture β what you're doing right and what needs attention.
Switch between Solana Devnet and Mainnet directly from the navbar. A safety warning modal appears when switching to Mainnet, reminding users they are viewing real funds. Powered by a shared NetworkContext that dynamically rewires the RPC endpoint across the entire app.
Free tier is capped at 10 AI analyses per session. After hitting the limit, users see a beautiful upgrade prompt with Pro plan features ($9/month). Rate limiting is enforced server-side across all 4 API routes, making the monetization story demonstrable to judges.
| Technology | Purpose |
|---|---|
| Next.js 16 | Frontend framework |
| React 18 | UI components |
| Tailwind CSS | Styling |
| Solana Web3.js | Blockchain interaction |
| Solana Wallet Adapter | Wallet connection (Phantom) |
| @solana/spl-token | Token account management |
| Anthropic Claude API | AI analysis engine |
| Vercel | Deployment |
Browser (Client)
β
Landing Page β Connect Wallet β Dashboard
β
Dashboard Components:
βββ Wallet Overview (web3.js)
βββ Security Score β /api/score β Claude AI
βββ Transaction List β /api/analyze β Claude AI
βββ Pre-Transaction Simulator β /api/simulate β Claude AI
βββ Token Approval Manager (spl-token)
βββ Address Reputation Checker β /api/reputation β Claude AI
Next.js API Routes (Server-side)
β
Claude API (Anthropic) β API key never exposed to client
β
Solana Devnet RPC
- Node.js 18+
- Phantom Wallet browser extension
- Anthropic API key
# Clone the repo
git clone https://github.com/ansh027/SolGuard.git
cd SolGuard
# Install dependencies
npm install --legacy-peer-deps
# Create environment file
cp .env.example .env.localCreate a .env.local file in the root:
ANTHROPIC_API_KEY=your_anthropic_api_key_here
NEXT_PUBLIC_RPC_URL=https://api.devnet.solana.comnpm run devOpen http://localhost:3000 in your browser.
- Install Phantom Wallet browser extension
- Switch Phantom to Devnet network
- Click "Select Wallet" on the landing page
- Approve the connection
User connects wallet
β
SolGuard fetches transaction history from Solana RPC
β
Data sent to Next.js API route (server-side)
β
Claude AI analyzes with specialized security prompts
β
Structured JSON response: { riskLevel, score, summary, flags }
β
Beautiful UI renders results in real-time
- API key never exposed β all Claude calls happen server-side via Next.js API routes
- No user data stored β all analysis is done in real-time, nothing is saved
- Devnet by default β safe to test without risking real funds
src/
βββ app/
β βββ components/
β β βββ Navbar.js
β β βββ Hero.js
β β βββ WalletOverview.js
β β βββ SecurityScore.js
β β βββ TransactionList.js
β β βββ SimulatorPanel.js
β β βββ TokenApprovalManager.js
β β βββ AddressReputation.js
β β βββ MainnetWarning.js
β β βββ UpgradePrompt.js
β β βββ RiskBadge.js
β βββ api/
β β βββ analyze/route.js
β β βββ score/route.js
β β βββ simulate/route.js
β β βββ reputation/route.js
β βββ context/
β β βββ NetworkContext.js
β βββ dashboard/
β β βββ page.js
β βββ demo/
β β βββ page.js
β βββ layout.js
β βββ Providers.js
β βββ page.js
βββ lib/
βββ solana.js
βββ claude.js
βββ rateLimit.js
- AI Security Score
- Transaction Analyzer
- Pre-Transaction Simulator
- Token Approval Manager
- Address Reputation Checker
- Mainnet/Devnet Toggle
- Usage Limiter & Pro Upgrade Prompt
- Real-time wallet monitoring alerts
- Multi-wallet support
- Mobile app (Solana Mobile SDK)
Built for the Solana Frontier Hackathon 2026 powered by Colosseum.
Track: AI Agent
Builder: Ansh Singh (@sansh07) β Solo
MIT License β see LICENSE for details.
Protecting wallets, one transaction at a time.