Flight manual
SolPortal, built as a wallet that can actually charge.
Non-custodial Solana wallet. The phone holds the keys. Jupiter collects the swap fee. Explore sells attention. The sandbox on the left is the MVP surface — it does not broadcast.
Architecture
Wallet core
Seed (BIP39 + SLIP-0010) or a passkey-wrapped embedded key. Encrypted keystore in the secure enclave / StrongBox. UI only sees the public key and a signing handle.
RPC and DAS
Helius (or Triton) for balances, Token-2022 extensions, NFTs, and enhanced history. One websocket per wallet. Index webhooks so Explore and the portfolio are not RPC-polling the client.
dApp browser
WKWebView / Android WebView, or a desktop iframe. Sandbox without wallet globals except the shim. Wallet Standard plus Mobile Wallet Adapter for apps that already speak it.
Treasury
A hot operations wallet owns fee token accounts for WSOL, USDC, and PYUSD. Swaps pay them inside the Jupiter transaction. A watcher sweeps to cold storage.
Fee path
- 1. Quote with
platformFeeBps=85. Prefer a stable or SOL fee mint so the treasury does not fill up with junk. - 2. Build the swap on the server. Pass
feeAccount. Jupiter transfers the fee inside the same transaction the user signs. - 3. Client simulates, shows the fee line, signs locally, and submits. No second transfer, so the fee cannot be skipped.
This sandbox session has booked 0.00 USD in swap fees, 0.00 in staking rebate, and 0.00 in on-ramp affiliate. Illustrative, not settled.
What you can charge
- Sponsored rankDirectory pin, 7 days$4,500
- Launchpad spotlightHero card + push to recents$2,000
- Referred depositsWhere the partner program allows10–15%
- Swap platform feeEvery native Jupiter swap85 bps
- Fiat affiliateMoonPay (not live yet)~1%
- LST partner shareSlice of the staking rebate10% of rebate
Sample rate card for planning. Not a quote from Jupiter, MoonPay, or any LST.
Roadmap
- 01MVP · Weeks 1–6Seed + passkey onboarding, local keystore, SOL/SPL/Token-2022 balances, NFTs, send, receive, history.
- 02Swaps · Weeks 7–9Jupiter quote and swap from your backend. 85 bps fee account. Slippage and priority fee presets.
- 03Explore · Weeks 10–15Directory, sandboxed webview, Wallet Standard bridge, simulation, bookmarks, connected sites.
- 04Revenue · Weeks 16–19LST partner flows, fiat affiliate webview, sponsored placements, campaign reporting.
- 05Pro + launch · Weeks 20–24MEV-aware tips, custom RPC, P&L, store review, abuse review, and a public audit.
Requests the shim exposes
standard:connect · standard:disconnect · solana:signMessage · solana:signTransaction · solana:signAndSendTransaction · solana:signAllTransactions
https://api.jup.ag/swap/v1/quote?inputMint=So11111111111111111111111111111111111111112&outputMint=EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v&amount=1000000000&slippageBps=50&platformFeeBps=85&restrictIntermediateTokens=true
Security and compliance
Keys never enter the webview
Inject a provider shim. The iframe is sandboxed and has no token to the keystore.
Origin is part of every request
Compare the webview origin to the connected-site record. Drop the message if they differ.
Simulate before sign
Helius or your RPC simulateTransaction. Show deltas, authority changes, and a drainer rule pack.
Unknown domains are second-class
Directory hosts skip the interstitial. Everything else gets a warning the user cannot scroll past.
Phrase stays on device
Encrypt with a passcode or WebAuthn PRF. No analytics event may contain it. Warn before screenshots.
Fee account is a token account you own
Mint must be the input or output mint. Token-2022 fees need instructionVersion=V2.
API key stays on the server
portal.jup.ag keys do not ship in the app. The phone only receives an unsigned transaction.
Store billing is separate from crypto
Pro is IAP. Buying SOL is an external on-ramp. Do not sell crypto through Apple In-App Purchase.