AI-assisted behavioral intelligence for Solana wallets β paste an address, pull on-chain activity, and get a readable profile with metrics, flow, and narrative insights. SolRouter (via @solrouter/sdk) is the AI gateway: their platform describes it as the first cryptographically private AI platform, powered by Arcium and OpenServ β i.e. private-by-design routing for the prompts and structured analytics you send to the model, not a generic always-plaintext pipe.
Raw Solana transaction history is noisy and hard to interpret at a glance. Explorers show events; they do not easily answer βwhat kind of wallet is this?β or βwhat patterns stand out?β Wallet Intelligence bridges that gap: it fetches enhanced transactions, compresses them into structured analytics, and layers deterministic charts and summaries with LLM-written narrative so patterns, risk posture, and notable signals are understandable without digging through logs β with the model step going through SolRouterβs privacy-oriented stack.
Wallet intelligence is not generic chat: the model receives rich structured analytics β counterparty graphs, temporal patterns, protocol usage, anomaly hints β derived from a specific address. That payload can reveal trading or automation patterns, relationships between addresses, and behavioral fingerprints someone may not want copied into a standard third-party inference log or retained beyond the analysis. Private inference (via SolRouter, Arcium, OpenServ) aligns with treating that behavioral summary as sensitive: compute stays within a cryptographically private path instead of treating the whole prompt as disposable plaintext. For compliance-minded or security-conscious users β and for bounty/demo credibility β that match between data sensitivity and inference privacy is the point.
The app does not hallucinate chain data. Helius supplies transactions; the server builds a structured feature payload (graph metrics, counterparties, temporal patterns, protocols, anomaly hints, and more). That JSON is sent to a model through SolRouter (@solrouter/sdk) β the same cryptographically private Arcium / OpenServ-backed path summarized above, instead of a generic API. A strict prompt requires the model to ground claims in the numbers, return JSON only (profile, behavior summary, insight cards, anomalies, soft forecasts, risk/confidence), and avoid price or identity claims. The UI merges that output with rule-based fallbacks when parsing or the API fails, so the dashboard stays useful either way.
Request flow from the browser through chain data, structured analytics, private inference, and back to the UI:
flowchart TD
P["app/page.tsx"] -->|POST /api/analyze| R["route.ts"]
R --> H["Helius"]
H --> C["compressTransactions"]
C --> W["buildWalletAnalysisInput"]
W --> SR["analyzeWallet Β· SolRouter"]
SR --> AD["adaptAnalyzeResult"]
AD -->|NDJSON + AnalyzeResponse| P
wallet-analysis.service.ts wires Helius fetch and analyzeWallet; response-builder pulls in data-builders and ai-parser.
| Home β address input & analysis flow | Results β intelligence dashboard |
|---|---|
![]() |
![]() |
- Streaming analysis β NDJSON steps from fetch β compress β build model input β AI.
- Summary & AI insights β profile label, behavioral summary, insight cards, anomalies, non-financial forecasts.
- On-chain analytics β signals, activity timeline, flow, graph intelligence, metrics, protocol and token usage.
| Area | Choice |
|---|---|
| Tooling | Bun (install & scripts) |
| Framework | Next.js 16 (App Router, Node runtime for API) |
| UI | React 19, Tailwind CSS 4, shadcn/ui, Radix UI, Base UI |
| Motion | Framer Motion / motion |
| Icons | Lucide React, Tabler Icons |
| Data | Helius SDK (enhanced transactions) |
| AI routing | SolRouter SDK β private AI routing (Arcium & OpenServ); configurable models, default gpt-oss-20b |
| Language | TypeScript |
| Quality | ESLint, Prettier (+ Tailwind plugin) |
- Clone and install:
bun install - Copy
.env.exampleβ.envand set:HELIUS_API_KEY(orNEXT_PUBLIC_HELIUS_API_KEY/API_KEYβ seeservices/utils/util.ts)SOLROUTER_API_KEY(orNEXT_PUBLIC_SOLROUTER_API_KEY)
- Run:
bun run dev(Turbopack)
Scripts: bun run build, bun run start, bun run lint, bun run typecheck, bun run format.
Crafted with curiosity and care β built with love by Shouvik Mohanta.

