Skip to content

About

End-to-end encrypted DeFi portfolio analyzer for Solana — powered by SolRouter

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

🔒 SolRouter Private Portfolio Analyzer

End-to-end encrypted DeFi portfolio intelligence for Solana.

Your portfolio data is encrypted client-side before analysis — neither SolRouter, the AI provider, nor any intermediary can ever see your holdings, strategy, or wallet composition.

Why Private Portfolio Analysis?

Traditional portfolio analysis tools require you to expose your holdings to third-party servers. This creates serious risks:

  • 🐋 Whale Tracking — Public analysis services log wallet addresses. Large holders become targets for copy-traders and MEV bots who front-run their trades.
  • 📊 Strategy Leakage — If your portfolio reveals a yield farming strategy or an alpha position, anyone with access to the analysis service can reverse-engineer your edge.
  • 🎯 Targeted Attacks — Wallet profiling enables social engineering, phishing, and targeted scams proportional to wallet size.
  • 📈 Front-Running — When your analysis query hits a centralized server, the operator could theoretically front-run trades based on your portfolio composition.

SolRouter solves this with cryptographic guarantees:

  1. Your prompt (portfolio data) is encrypted with Arcium RescueCipher (X25519 key exchange) before leaving your device
  2. SolRouter's backend routes the encrypted blob blindly — it cannot decrypt your data
  3. Decryption and AI inference happen inside an AWS Nitro TEE (hardware-isolated enclave)
  4. The response is encrypted with an ephemeral key that only you hold

This isn't a privacy policy. It's math.

Demo

SolRouter Private Portfolio Analyzer Demo

Installation

git clone https://github.com/Atlaskos/solrouter-portfolio-analyzer.git
cd solrouter-portfolio-analyzer
npm install
cp .env.example .env

Get your SolRouter API key at solrouter.com/sdk — no email, no KYC, just connect a wallet.

Add your key to .env:

SOLROUTER_API_KEY=sk_solrouter_your_key_here

Usage

Full Analysis (Encrypted)

Analyze any Solana wallet with encrypted AI — the wallet address and holdings are encrypted before leaving your machine:

node src/index.js analyze <WALLET_ADDRESS>

Example:

node src/index.js analyze vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg

Quick Scan (No AI)

Get an overview of wallet holdings without AI analysis:

node src/index.js scan <WALLET_ADDRESS>

Encrypted Query

Send any encrypted question to SolRouter:

node src/index.js query "What are the risks of leveraged yield farming on Kamino?"

Check Balance

node src/index.js balance

How It Works

┌──────────────────────┐
│  Your Machine        │
│                      │
│  1. Fetch on-chain   │
│     wallet data      │
│  2. Encrypt with     │
│     Arcium cipher    │
│  3. Send encrypted   │
│     blob             │
└──────────┬───────────┘
           │ encrypted
           ▼
┌──────────────────────┐
│  SolRouter Backend   │
│                      │
│  Cannot decrypt.     │
│  Routes blindly.     │
└──────────┬───────────┘
           │ still encrypted
           ▼
┌──────────────────────┐
│  AWS Nitro TEE       │
│                      │
│  Hardware-isolated   │
│  decryption + AI     │
│  inference           │
└──────────┬───────────┘
           │ re-encrypted
           ▼
┌──────────────────────┐
│  Your Machine        │
│                      │
│  Decrypt with        │
│  ephemeral key       │
│  → Read analysis     │
└──────────────────────┘

Features

  • 🔒 End-to-end encrypted — portfolio data never leaves encryption
  • 📊 On-chain data fetching — SOL balance, SPL tokens, staking positions, transaction history
  • 🧠 AI-powered analysis — risk assessment, diversification insights, DeFi optimization
  • 🐋 Whale-safe — no wallet profiling, no strategy leakage
  • ⚡ Solana-native — understands Solana DeFi protocols (Marinade, Raydium, Orca, Jupiter, etc.)
  • 🎨 Beautiful CLI — colored output with progress spinners

Tech Stack

  • SolRouter SDK (@solrouter/sdk) — encrypted AI inference
  • Solana Web3.js (@solana/web3.js) — on-chain data
  • Commander.js — CLI framework
  • Chalk + Ora — terminal UI

Use Cases

  • Portfolio managers analyzing client wallets without exposing positions
  • Traders getting AI analysis without revealing their alpha
  • DAOs auditing treasury wallets privately
  • Researchers studying wallet behavior without creating tracking footprints
  • Anyone who wants AI portfolio analysis without becoming a data point

License

MIT

Built With


Your portfolio. Your strategy. Your privacy.

About

End-to-end encrypted DeFi portfolio analyzer for Solana — powered by SolRouter

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages