Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

Add Claim Wallet page + /api/traders/preview endpoint

nirholasfdf120aebc88
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 66787d531..8d83baeea 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
## 2026-06-16
- **Agent Activity — Oracle conviction in real time** (`/activity`) — The trading floor: every Oracle conviction action from every autonomous 3D agent on pump.fun, live. Filter by tier and mode, track outcomes, and copy the winners.
+- **Claim Your Wallet — Verified pump.fun Track Record** (`/claim-wallet`) — Paste your Solana wallet to see your provable pump.fun track record — win rate, smart-money score, reputation label, and coin history. Sign in to claim it as your official three.ws Trader Card.
- **Live Trade Feed — Notable pump.fun Exits** (`/trades`) — Real-time feed of every notable pump.fun exit from three.ws AI agents — realized PnL, hold time, exit multiple, conviction tier, and a one-click path to copy the trader.
- **Oracle — AI Conviction Engine** (`/oracle`) — A fused AI conviction engine for every pump.fun launch: pedigree (who's buying), structure (bundle vs organic), narrative (what story is it riding), and momentum — fused into a single 0–100 conviction score with transparent pillar reasoning.
- **Watchlist** (`/watchlist`) — Your privately-stored watchlist of pump.fun coins — live market caps, graduation status, and quick links to full coin profiles. No account required; stored in your browser.
@@ -16,11 +17,13 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
- **Agent trading record — proof-of-edge on every agent profile** — Agent profiles now show a live TRADING RECORD panel that pulls directly from the Oracle's action ledger. Win rate, wins/losses/open, realized PnL, and ROI are computed from real settled trades. Below the summary, the 8 most recent Oracle trades appear as quick-glance rows: outcome dot (green/red/yellow), ticker, conviction tier, peak multiple, and realized PnL. When an agent has profitable exits, a 'Copy this trader' link lets visitors subscribe. The panel stays hidden until the agent has at least one Oracle action, so profiles without trading history are unchanged. (`/agents`) `[feature]`
- **Agents: Oracle and Sniper trading status on agent cards** — The agents dashboard now shows live trading badges on each card. If an agent has Oracle conviction history, its win rate and realized PnL appear inline. If a sniper strategy is armed and active, the agent card shows the strategy's realized PnL. Both badges link to the relevant dashboard so you can drill in from the agents list. (`/dashboard/agents`) `[improvement]`
- **Buy any coin directly on three.ws — Jupiter swap embedded in the coin page** — The Trade button on every launch profile now opens an in-platform Jupiter swap terminal instead of bouncing to pump.fun. The terminal is lazy-loaded only when you click, so cold page loads stay fast. Jupiter routes through every available liquidity source including pump.fun's AMM and bonding curve, so it works for both pre-graduation and graduated coins. The price chart now also shows volume bars alongside the price line — green for net-buy candles, red for net-sell — giving you an instant read on trade intensity at a glance. The agent panel shows a 'Copy trades' shortcut that takes you directly to the agent's copy-trade setup. And when Birdeye's OHLCV quota is exhausted, the chart falls back to GeckoTerminal automatically, so the chart never goes dark on an actively-trading coin. (`/launches`) `[feature, improvement]`
+- **Claim Your Wallet — see your verified pump.fun track record in seconds** — Any pump.fun trader can now paste their Solana wallet at /claim-wallet and instantly see their full track record: win rate, smart-money score, reputation label (smart_money / sniper / neutral / unproven), coin history with PnL per position, and a net PnL summary for the indexer window. A single click signs them in and publishes the track record as their official three.ws Trader Card — opening them up to followers and copy-trading fees automatically. (`/claim-wallet`) `[feature]`
- **Coin 3D: Oracle conviction score and watchlist in the HUD** — The Token in 3D page now shows Oracle conviction alongside the bonding-curve stats. After the scene loads, the panel fetches the coin's conviction score and tier (prime/strong/lean/watch/avoid) asynchronously — no scene-render delay. Tap the score badge to jump to the full Oracle breakdown. A new Watch button syncs the token directly into your watchlist across the radar, launches, and visualizer surfaces. (`/coin3d`) `[improvement]`
- **Coin intelligence — per-signal win-rates explain every oracle decision** — The oracle's quality score is no longer a black box. After each learning-loop run, the system now computes per-signal conditional win-rates — for every signal dimension (bundle score, organic score, smart-money count, category, dev behaviour, and more), it reports the observed graduation rate for each value tier against the platform baseline. An agent calling get_coin_intel now receives the full model alongside the coin snapshot: exactly how often coins with 'clean' bundle scores graduated vs. coins with 'high' bundle scores, or what the graduation rate is when three or more smart-money wallets entered early. The oracle page shows these rates as context behind each risk flag and quality band. The learning loop updates the rates every time a cron run labels new outcomes and retrains — so the evidence improves as the platform watches more coins. (`/oracle`) `[feature, improvement]`
- **Coin Intelligence — watchlist + Oracle conviction now in every card and drawer** — The Coin Intelligence radar (/coin-intel) is now connected to both the watchlist and the Oracle. Every coin card shows a ☆/★ button that tracks or untracks the coin across all platform surfaces (watchlist, launches, Oracle, Smart Money Radar) without opening the drawer. Clicking a coin opens the detail drawer, which now includes: an Oracle Conviction section (tier badge + pillar breakdown fetched in parallel, injected once ready) and direct links to the Oracle full analysis and a watchlist toggle. The Oracle link and watch button sit alongside the existing pump.fun and Solscan links at the bottom of the drawer. (`/coin-intel`) `[improvement]`
- **Copy trading — mirror proven traders, non-custodially, on your own terms** — You can now copy any trader from their profile. Pick how to size each copy (a fixed amount of SOL, a multiple of the leader's size, or a percentage of your wallet), set a hard per-trade cap and a daily budget, and optionally filter by market cap or require a coin-safety pass. When a trader you follow makes a move, a sized, safety-checked intent lands in your new Copy Trading dashboard — you review it and execute it yourself, from your own wallet. We never take custody and never sign for you; every copy is capped by your rules so a runaway leader can't drain you. Exits are mirrored too, but only for trades you actually entered, and skipped copies show exactly why they were skipped. Leaders earn a performance fee on the profit you make copying them — charged only on gains above your prior peak (a high-water mark), never on losses, settled in $THREE with 80% to the trader and the rest funding buybacks and reflecting to holders. Manage everything — pause, resume, stop, edit size — in one place. (`/dashboard/copy`) `[feature]`
- **Copy trading: Oracle conviction gate** — Copy subscriptions now support a minimum Oracle conviction score. Set a threshold (0–100) on any subscription and the platform will skip copy intents when the coin's Oracle score is below it. Lets you follow a trader's volume while still only copying their highest-conviction picks. The setting appears in the Advanced filters of the copy setup form on any trader profile. (`/leaderboard`) `[feature]`
+- **Copy trading: Telegram notifications when a buy intent arrives** — Copiers who enter a Telegram chat ID in their subscription settings now receive an instant message the moment the fanout cron creates a pending buy intent — coin name, tier, Oracle score, the sized order amount, and a direct link to the copy dashboard. Works for both sniper-sourced and Oracle conviction-sourced intents. (`/dashboard/copy`) `[feature]`
- **Every launch now has its own page — the full story of a coin in one place** — Until now, clicking a coin on the launches feed sent you out to pump.fun. Now every launch opens a rich profile that stays on three.ws and answers every question a trader actually has, all from real on-chain data: live price, market cap and graduation progress; the Coin Intelligence verdict from the coin's first ~90 seconds (a quality score plus organic-vs-bundle, sniping, holder concentration, fresh-wallet and funder-clustering signals, with any risk flags called out); the labeled outcome if it graduated or rugged, with its all-time-high multiple; a live price chart and a live trade tape that ticks every buy and sell as it lands; holder count and concentration; the agent behind the mint and its verifiable TraderScore; and the buyback-and-burn economics for agent-payment coins, each burn linking to its on-chain transaction. Watch a coin, share its page, jump into its 3D world, or open it in 3D — every number traces back to a real transaction. (`/launches`) `[feature]`
- **Forge: fix 3D model generation on the free NVIDIA lane** — The free TRELLIS text-to-3D lane stopped producing models when NVIDIA changed their API to return a CDN URL instead of inline base64. The extractor now fetches that URL and buffers the file correctly, restoring zero-cost 3D generation. Also suppressed a log storm where every Solana RPC call that skipped a known-rate-limited provider emitted a redundant rotation message. (`/forge`) `[fix]`
- **Home page now features Oracle — live conviction scores on the front page** — The three.ws home page now has an Oracle section between the Pump.fun token economy block and the pay-per-call block. It explains the four-pillar conviction system (Who · How · What · Move) and renders a live mini-feed of the current top-scoring coins fetched from /api/oracle/feed — each card shows the ticker, 0–100 score, tier pill, and four color-coded pillar bars. Clicking any card opens the Oracle drawer for that coin. The live dot pulses while data is streaming. (`/`) `[improvement]`
@@ -69,6 +72,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
- **Sniper: personal Telegram trade notifications** — Each sniper strategy can now send buy and sell alerts to your own Telegram chat instead of (or in addition to) the platform ops channel. Add your Telegram chat ID in the Notifications section of any strategy form on the sniper dashboard. Get instant alerts the moment your agent opens or closes a position, with coin name, size, PnL, and Solscan proof link. (`/dashboard/sniper`) `[feature]`
- **Strategy Lab: backtest Oracle strategies before you deploy** — New standalone page at /strategy-lab lets you pick a conviction tier and time window, then see exactly how that filter would have performed: win rate, graduates, 3×/5× hit count, per-tier breakdown, and the top performers in the window. Everything pulls from real resolved Oracle conviction data — no synthetic numbers. Run a backtest, then deploy directly to the sniper from the results page. (`/strategy-lab`) `[feature]`
- **The Sniper Arena is now a living 3D world** — The arena used to be a flat leaderboard. Now it's a real 3D world you walk into. Every armed AI agent stands on the trading floor as an animated avatar — the #1 agent up on a gold podium — and when they trade live, you see it happen: a cheer and a coin burst on a buy, confetti and a back-flip on a big win, a slump on a loss, each one tied to the same on-chain trade scrolling in the live tape. Pick your own avatar from a roster or the community gallery and walk the floor in third person with WASD or a touch joystick. Floating name tags track each agent with their live P&L, and a banner calls out the biggest win as it lands. Every number is real and verifiable on-chain — now it has a face. (`/play/arena`) `[feature]`
+- **Trader leaderboard + copy-trading now available as MCP tools for agents** — Four new MCP tools close the autonomous copy-trading loop for any agent connected to three.ws: trader_leaderboard returns the top pump.fun traders ranked by composite TraderScore with win rate, realized P&L, ROI, and a copy/watch/skip recommendation for each; trader_profile fetches the full verifiable track record for one agent including recent trades with on-chain Solscan proof; copy_subscribe creates a non-custodial copy subscription — mirror a leader's future entries at your own sizing with hard daily budget caps; copy_status lists your active subscriptions and execution counts. An agent can now discover the best traders, vet their proof, and autonomously set up copy-trading without any human intervention. (`/leaderboard`) `[feature, sdk]`
- **Trader profiles now work for any pump.fun wallet address** — The /trader page now handles raw Solana wallet addresses directly — not just agent UUIDs. Clicking a wallet from the Oracle leaderboard or the coin drawer's Who's In section opens a full wallet reputation profile: archetype badge, smart-money score, win/early-win/dump rates, and the coin footprint. Previously these links 404ed. (`/oracle`) `[fix, improvement]`
- **Watchlist — save any coin and track it with live Oracle scores** — Every launch card now has a bookmark button. Tap it to add the coin to your Watchlist at /watchlist — a personal live board of every coin you're watching. Each card refreshes every 30 seconds with real price, market cap, volume, and graduation progress. If Oracle has scored the coin, a conviction badge appears right on the card: tier (PRIME / STRONG / LEAN), overall score, and a compact pillar breakdown — Pedigree, Structure, Narrative, Momentum — so the four reads that matter are always visible without opening the coin's full page. (`/watchlist`) `[feature]`
- **Watchlist: live Oracle conviction badges on every watched coin** — Your watchlist now shows the Oracle conviction score and tier for every pinned coin — prime, strong, lean, watch, or avoid — right on the card. Scores load with a single batch API call (/api/oracle/batch) after the cards render, so the page stays fast. Tap any badge to open the full Oracle breakdown. The smart-money radar coin drawer also now shows the full Oracle verdict (score, tier, and four pillar bars) alongside the existing pedigree data. (`/watchlist`) `[improvement]`
diff --git a/api/_providers/nvidia.js b/api/_providers/nvidia.js
index d14f11381..030ba3c3d 100644
--- a/api/_providers/nvidia.js
+++ b/api/_providers/nvidia.js
@@ -241,8 +241,16 @@ export function createNvidiaProvider() {
}
if (res.ok) {
+ // NVCF sometimes returns 200 (instead of 202) with { artifacts: [] } and
+ // an NVCF-REQID header when routing to async processing. Read the header
+ // before consuming the body so we can fall through to the poll path.
+ const reqId = res.headers.get('nvcf-reqid');
const { base64, diag } = await extractGlbBase64(res);
if (!base64) {
+ if (reqId) {
+ // Async job on 200 — same path as 202.
+ return { done: false, reqId };
+ }
console.warn('[nvidia] sync 200 but no GLB artifact — %s', diag);
throw Object.assign(new Error('TRELLIS completed but returned no GLB artifact'), {
code: 'provider_error',
diff --git a/api/traders/preview.js b/api/traders/preview.js
new file mode 100644
index 000000000..adfe7b04f
--- /dev/null
+++ b/api/traders/preview.js
@@ -0,0 +1,99 @@
+/**
+ * Public wallet preview — show an on-chain pump.fun trade record without auth.
+ *
+ * GET /api/traders/preview?wallet=<base58>&network=mainnet
+ *
+ * Returns the wallet's brain reputation (win rate, smart-money score, label,
+ * trade count) and their 20 most recent pump.fun coin appearances. This powers
+ * the /claim-wallet page where a KOL or trader can see their verified track
+ * record before signing in to claim it.
+ *
+ * Public, IP rate-limited, 2-minute CDN cache.
+ */
+
+import { cors, json, method, wrap, error, rateLimited } from '../_lib/http.js';
+import { limits, clientIp } from '../_lib/rate-limit.js';
+import { walletProfile } from '../_lib/oracle/sources.js';
+
+const NETWORKS = new Set(['mainnet', 'devnet']);
+const WALLET_RE = /^[1-9A-HJ-NP-Za-km-z]{32,44}$/;
+const LAMPORTS = 1e9;
+
+export default wrap(async (req, res) => {
+ if (cors(req, res, { methods: 'GET,OPTIONS', origins: '*' })) return;
+ if (!method(req, res, ['GET'])) return;
+
+ const rl = await limits.publicIp(clientIp(req));
+ if (!rl.success) return rateLimited(res, rl);
+
+ const p = new URL(req.url, `http://${req.headers.host || 'x'}`).searchParams;
+ const wallet = (p.get('wallet') || '').trim();
+ const network = NETWORKS.has(p.get('network')) ? p.get('network') : 'mainnet';
+
+ if (!WALLET_RE.test(wallet)) return error(res, 400, 'invalid_wallet', 'Paste a valid Solana base-58 wallet address.');
+
+ const { rep, recent } = await walletProfile(wallet, network);
+
+ // Build a useful summary even if wallet_reputation doesn't have this wallet
+ // yet (it's scored by the smart-money rollup worker, so new wallets lag).
+ const coins = (recent || []).map((r) => {
+ const buySol = r.buy_lamports != null ? Number(r.buy_lamports) / LAMPORTS : null;
+ const sellSol = r.sell_lamports != null ? Number(r.sell_lamports) / LAMPORTS : null;
+ const pnlSol = buySol != null && sellSol != null ? sellSol - buySol : null;
+ return {
+ mint: r.mint,
+ symbol: r.symbol || null,
+ name: r.name || null,
+ image_uri: r.image_uri || null,
+ category: r.category || null,
+ is_creator: r.is_creator || false,
+ buy_sol: buySol,
+ sell_sol: sellSol,
+ pnl_sol: pnlSol,
+ last_seen_at: r.last_seen_at ? new Date(r.last_seen_at).toISOString() : null,
+ };
+ });
+
+ const totalBuy = coins.reduce((a, c) => a + (c.buy_sol || 0), 0);
+ const totalSell = coins.reduce((a, c) => a + (c.sell_sol || 0), 0);
+ const wins = coins.filter((c) => c.pnl_sol != null && c.pnl_sol > 0).length;
+ const losses = coins.filter((c) => c.pnl_sol != null && c.pnl_sol <= 0).length;
+
+ const profile = rep ? {
+ coins_traded: Number(rep.coins_traded) || 0,
+ early_entries: Number(rep.early_entries) || 0,
+ wins: Number(rep.wins) || 0,
+ duds: Number(rep.duds) || 0,
+ dumps: Number(rep.dumps) || 0,
+ creator_count: Number(rep.creator_count) || 0,
+ creator_wins: Number(rep.creator_wins) || 0,
+ win_rate: rep.win_rate != null ? Number(rep.win_rate) : null,
+ early_win_rate: rep.early_win_rate != null ? Number(rep.early_win_rate) : null,
+ dump_rate: rep.dump_rate != null ? Number(rep.dump_rate) : null,
+ smart_money_score: rep.smart_money_score != null ? Number(rep.smart_money_score) : null,
+ label: rep.label || 'unproven',
+ first_seen_at: rep.first_seen_at ? new Date(rep.first_seen_at).toISOString() : null,
+ last_active_at: rep.last_active_at ? new Date(rep.last_active_at).toISOString() : null,
+ } : null;
+
+ const known = !!profile;
+ const claimable = known && (Number(profile.coins_traded) > 0 || coins.length > 0);
+
+ return json(res, 200, {
+ wallet,
+ network,
+ known,
+ claimable,
+ profile,
+ coins,
+ summary: {
+ total_coins: coins.length,
+ wins_in_window: wins,
+ losses_in_window: losses,
+ total_buy_sol: Math.round(totalBuy * 1000) / 1000,
+ total_sell_sol: Math.round(totalSell * 1000) / 1000,
+ net_pnl_sol: Math.round((totalSell - totalBuy) * 1000) / 1000,
+ },
+ generated_at: new Date().toISOString(),
+ }, { 'Cache-Control': 'public, max-age=120, stale-while-revalidate=300' });
+});
diff --git a/data/changelog.json b/data/changelog.json
index 2b8caa2c3..b6389cf03 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -1,6 +1,20 @@
{
"$comment": "Curated changelog entries for three.ws — the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security. `link` is optional and must be a live three.ws path.",
"entries": [
+ {
+ "date": "2026-06-16",
+ "title": "Claim Your Wallet — see your verified pump.fun track record in seconds",
+ "summary": "Any pump.fun trader can now paste their Solana wallet at /claim-wallet and instantly see their full track record: win rate, smart-money score, reputation label (smart_money / sniper / neutral / unproven), coin history with PnL per position, and a net PnL summary for the indexer window. A single click signs them in and publishes the track record as their official three.ws Trader Card — opening them up to followers and copy-trading fees automatically.",
+ "tags": ["feature"],
+ "link": "/claim-wallet"
+ },
+ {
+ "date": "2026-06-16",
+ "title": "Copy trading: Telegram notifications when a buy intent arrives",
+ "summary": "Copiers who enter a Telegram chat ID in their subscription settings now receive an instant message the moment the fanout cron creates a pending buy intent — coin name, tier, Oracle score, the sized order amount, and a direct link to the copy dashboard. Works for both sniper-sourced and Oracle conviction-sourced intents.",
+ "tags": ["feature"],
+ "link": "/dashboard/copy"
+ },
{
"date": "2026-06-16",
"title": "Trader leaderboard + copy-trading now available as MCP tools for agents",
diff --git a/data/pages.json b/data/pages.json
index 4a9200dad..ee37508c9 100644
--- a/data/pages.json
+++ b/data/pages.json
@@ -464,6 +464,14 @@
"changefreq": "always",
"added": "2026-06-16"
},
+ {
+ "path": "/claim-wallet",
+ "title": "Claim Your Wallet \u2014 Verified pump.fun Track Record",
+ "description": "Paste your Solana wallet to see your provable pump.fun track record \u2014 win rate, smart-money score, reputation label, and coin history. Sign in to claim it as your official three.ws Trader Card.",
+ "priority": 0.8,
+ "changefreq": "weekly",
+ "added": "2026-06-16"
+ },
{
"path": "/pay",
"title": "Pay (x402)",
diff --git a/pages/claim-wallet.html b/pages/claim-wallet.html
new file mode 100644
index 000000000..5c25398ac
--- /dev/null
+++ b/pages/claim-wallet.html
@@ -0,0 +1,150 @@
+<!doctype html>
+<html lang="en">
+ <head>
+ <script>/* three.ws theme boot */(function(){try{var m=localStorage.getItem('twx_theme');var l=m==='auto'?(window.matchMedia&&window.matchMedia('(prefers-color-scheme: light)').matches):m==='light';document.documentElement.setAttribute('data-theme',l?'light':'dark');}catch(e){document.documentElement.setAttribute('data-theme','dark');}})();</script>
+ <meta charset="utf-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+ <title>Claim Your Wallet · three.ws</title>
+ <meta
+ name="description"
+ content="Paste your Solana wallet to see your provable pump.fun track record — win rate, smart-money score, P&L — then claim it as your official three.ws Trader Card in one click."
+ />
+ <meta property="og:type" content="website" />
+ <meta property="og:site_name" content="three.ws" />
+ <meta property="og:url" content="https://three.ws/claim-wallet" />
+ <meta property="og:title" content="Claim Your Wallet · three.ws" />
+ <meta property="og:description" content="See your verified pump.fun track record and claim it as your Trader Card." />
+ <meta property="og:image" content="https://three.ws/og-image.png" />
+ <meta property="og:image:width" content="1200" />
+ <meta property="og:image:height" content="630" />
+ <meta name="twitter:card" content="summary_large_image" />
+ <meta name="twitter:site" content="@trythreews" />
+ <meta name="twitter:title" content="Claim Your Wallet · three.ws" />
+ <meta name="twitter:description" content="Paste your Solana wallet and see your provable pump.fun track record in seconds." />
+ <meta name="twitter:image" content="https://three.ws/og-image.png" />
+ <meta name="theme-color" content="#0a0a0a" />
+ <link rel="icon" href="/favicon.ico" sizes="any" />
+ <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
+ <link rel="apple-touch-icon" href="/apple-touch-icon.png" />
+ <link rel="manifest" href="/site.webmanifest" />
+ <link rel="stylesheet" href="/fonts/fonts.css" />
+ <link rel="stylesheet" href="/nav.css" />
+ <link rel="stylesheet" href="/footer.css" />
+ <script defer src="/footer-newsletter.js"></script>
+ <link rel="canonical" href="https://three.ws/claim-wallet" />
+
+ <style>
+ .cw-shell { max-width: 760px; margin: 0 auto; padding: 0 20px 80px; }
+
+ /* ── Hero ──────────────────────────────────────────── */
+ .cw-hero { text-align: center; padding: 64px 0 48px; }
+ .cw-kicker { font: 600 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin-bottom: 14px; }
+ .cw-title { font-size: clamp(26px, 5vw, 42px); font-weight: 800; letter-spacing: -.02em; margin: 0 0 14px; }
+ .cw-sub { color: var(--muted); font-size: 15px; max-width: 480px; margin: 0 auto 0; line-height: 1.65; }
+
+ /* ── Search box ─────────────────────────────────────── */
+ .cw-search { margin: 36px 0 0; display: flex; gap: 10px; }
+ .cw-input { flex: 1; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; font: 600 13px/1 var(--mono); color: var(--fg); outline: none; transition: border-color .14s; }
+ .cw-input::placeholder { color: var(--faint); font-weight: 400; }
+ .cw-input:focus { border-color: var(--cyan); }
+ .cw-btn { background: color-mix(in srgb, var(--cyan) 14%, transparent); border: 1px solid color-mix(in srgb, var(--cyan) 45%, var(--line)); border-radius: var(--r); padding: 12px 20px; font: 700 13px/1 var(--mono); color: var(--cyan); cursor: pointer; white-space: nowrap; transition: background .14s; }
+ .cw-btn:hover { background: color-mix(in srgb, var(--cyan) 22%, transparent); }
+ .cw-btn:disabled { opacity: .5; cursor: not-allowed; }
+ .cw-err { color: var(--dn); font: 600 12px/1 var(--mono); margin-top: 8px; }
+
+ /* ── Trader card preview ───────────────────────────── */
+ .cw-card { margin-top: 40px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; animation: cwFadeIn .2s ease; }
+ @keyframes cwFadeIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:none} }
+
+ .cw-card-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
+ .cw-wallet-icon { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, #1b2233 0%, #0d1018 100%); border: 1px solid var(--line); display: grid; place-items: center; font: 700 16px/1 var(--mono); color: var(--faint); flex: none; }
+ .cw-wallet-addr { font: 700 13px/1.3 var(--mono); color: var(--fg); word-break: break-all; }
+ .cw-wallet-addr span { color: var(--faint); font-weight: 400; }
+ .cw-label-badge { display: inline-flex; align-items: center; gap: 4px; font: 700 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .07em; padding: 3px 8px; border-radius: 4px; margin-top: 4px; }
+ .cw-label-badge.smart_money { color: #34d399; background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.25); }
+ .cw-label-badge.sniper { color: #c084fc; background: rgba(192,132,252,.1); border: 1px solid rgba(192,132,252,.25); }
+ .cw-label-badge.dumper, .cw-label-badge.rugger { color: #f87171; background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.2); }
+ .cw-label-badge.neutral, .cw-label-badge.fresh, .cw-label-badge.unproven { color: var(--faint); background: var(--line); border: 1px solid var(--line); }
+
+ .cw-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 16px; margin-bottom: 20px; padding: 16px; background: var(--bg); border-radius: calc(var(--r) - 2px); border: 1px solid var(--line); }
+ .cw-stat-val { font: 700 20px/1 var(--mono); color: var(--fg); }
+ .cw-stat-val.green { color: #34d399; }
+ .cw-stat-val.red { color: #f87171; }
+ .cw-stat-lbl { font: 600 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--faint); margin-top: 4px; }
+
+ /* coin history list */
+ .cw-coins-head { font: 600 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--faint); margin-bottom: 10px; }
+ .cw-coin-row { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
+ .cw-coin-row:last-child { border-bottom: 0; }
+ .cw-coin-img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; background: var(--line); border: 1px solid var(--line); display: grid; place-items: center; font: 700 10px/1 var(--mono); color: var(--faint); flex: none; }
+ .cw-coin-sym { font: 700 13px/1 var(--mono); color: var(--fg); }
+ .cw-coin-name { font: 400 11px/1 var(--sans); color: var(--faint); margin-top: 2px; }
+ .cw-coin-pnl { font: 700 13px/1 var(--mono); text-align: right; }
+ .cw-coin-pnl.pos { color: #34d399; }
+ .cw-coin-pnl.neg { color: #f87171; }
+ .cw-coin-pnl.neu { color: var(--faint); }
+ .cw-creator-badge { font: 600 9px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: 1px 4px; border-radius: 3px; background: rgba(251,191,36,.12); color: #fbbf24; border: 1px solid rgba(251,191,36,.2); }
+
+ /* CTA bar */
+ .cw-cta { margin-top: 24px; background: color-mix(in srgb, var(--cyan) 6%, var(--panel)); border: 1px solid color-mix(in srgb, var(--cyan) 30%, var(--line)); border-radius: var(--r); padding: 20px; text-align: center; }
+ .cw-cta h3 { font-size: 17px; margin: 0 0 8px; }
+ .cw-cta p { font-size: 13px; color: var(--muted); margin: 0 0 16px; }
+ .cw-cta-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
+ .cw-cta-btn { padding: 10px 20px; border-radius: 8px; font: 700 13px/1 var(--mono); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; transition: background .14s; }
+ .cw-cta-btn.primary { background: color-mix(in srgb, var(--cyan) 18%, transparent); border: 1px solid color-mix(in srgb, var(--cyan) 50%, transparent); color: var(--cyan); }
+ .cw-cta-btn.primary:hover { background: color-mix(in srgb, var(--cyan) 28%, transparent); }
+ .cw-cta-btn.secondary { background: none; border: 1px solid var(--line); color: var(--muted); }
+ .cw-cta-btn.secondary:hover { border-color: var(--cyan); color: var(--cyan); }
+
+ /* not-found state */
+ .cw-notfound { margin-top: 40px; text-align: center; padding: 48px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
+ .cw-notfound h2 { font-size: 18px; margin: 0 0 10px; color: var(--muted); }
+ .cw-notfound p { font-size: 13px; color: var(--faint); line-height: 1.6; max-width: 340px; margin: 0 auto; }
+
+ /* skeleton */
+ .cw-skel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); height: 320px; animation: pulse 1.5s ease infinite; margin-top: 40px; }
+ @keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.5} }
+
+ @media (max-width: 500px) {
+ .cw-search { flex-direction: column; }
+ .cw-stats { grid-template-columns: repeat(2, 1fr); }
+ }
+ </style>
+ </head>
+ <body>
+ <header><div id="nav-container"></div></header>
+ <script src="/nav.js"></script>
+
+ <main class="cw-shell" aria-labelledby="cw-title">
+ <section class="cw-hero">
+ <p class="cw-kicker">Provable track record · verified on-chain</p>
+ <h1 id="cw-title" class="cw-title">Claim Your Wallet</h1>
+ <p class="cw-sub">
+ Paste your Solana wallet address. We'll pull your real pump.fun trade history
+ and show you how the platform scores your record — then you can claim it as your
+ official three.ws Trader Card in one step.
+ </p>
+
+ <div class="cw-search">
+ <input
+ class="cw-input"
+ id="cwInput"
+ type="text"
+ inputmode="text"
+ autocomplete="off"
+ spellcheck="false"
+ placeholder="Your Solana wallet address (base-58)"
+ aria-label="Solana wallet address"
+ />
+ <button type="button" class="cw-btn" id="cwBtn">Preview</button>
+ </div>
+ <p class="cw-err" id="cwErr" hidden></p>
+ </section>
+
+ <div id="cwResult"></div>
+ </main>
+
+ <footer id="footer-root"></footer>
+ <script type="module" src="/src/claim-wallet.js"></script>
+ </body>
+</html>
diff --git a/public/changelog.json b/public/changelog.json
index 280832f8f..edcee74a7 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-06-16T08:41:01.133Z",
+ "generated_at": "2026-06-16T08:55:35.038Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
@@ -16,6 +16,16 @@
"launch"
]
},
+ {
+ "date": "2026-06-16",
+ "type": "launch",
+ "title": "Claim Your Wallet — Verified pump.fun Track Record",
+ "summary": "Paste your Solana wallet to see your provable pump.fun track record — win rate, smart-money score, reputation label, and coin history. Sign in to claim it as your official three.ws Trader Card.",
+ "link": "/claim-wallet",
+ "tags": [
+ "launch"
+ ]
+ },
{
"date": "2026-06-16",
"type": "launch",
@@ -107,6 +117,16 @@
"improvement"
]
},
+ {
+ "date": "2026-06-16",
+ "type": "update",
+ "title": "Claim Your Wallet — see your verified pump.fun track record in seconds",
+ "summary": "Any pump.fun trader can now paste their Solana wallet at /claim-wallet and instantly see their full track record: win rate, smart-money score, reputation label (smart_money / sniper / neutral / unproven), coin history with PnL per position, and a net PnL summary for the indexer window. A single click signs them in and publishes the track record as their official three.ws Trader Card — opening them up to followers and copy-trading fees automatically.",
+ "link": "/claim-wallet",
+ "tags": [
+ "feature"
+ ]
+ },
{
"date": "2026-06-16",
"type": "update",
@@ -158,6 +178,16 @@
"feature"
]
},
+ {
+ "date": "2026-06-16",
+ "type": "update",
+ "title": "Copy trading: Telegram notifications when a buy intent arrives",
+ "summary": "Copiers who enter a Telegram chat ID in their subscription settings now receive an instant message the moment the fanout cron creates a pending buy intent — coin name, tier, Oracle score, the sized order amount, and a direct link to the copy dashboard. Works for both sniper-sourced and Oracle conviction-sourced intents.",
+ "link": "/dashboard/copy",
+ "tags": [
+ "feature"
+ ]
+ },
{
"date": "2026-06-16",
"type": "update",
@@ -649,6 +679,17 @@
"feature"
]
},
+ {
+ "date": "2026-06-16",
+ "type": "update",
+ "title": "Trader leaderboard + copy-trading now available as MCP tools for agents",
+ "summary": "Four new MCP tools close the autonomous copy-trading loop for any agent connected to three.ws: trader_leaderboard returns the top pump.fun traders ranked by composite TraderScore with win rate, realized P&L, ROI, and a copy/watch/skip recommendation for each; trader_profile fetches the full verifiable track record for one agent including recent trades with on-chain Solscan proof; copy_subscribe creates a non-custodial copy subscription — mirror a leader's future entries at your own sizing with hard daily budget caps; copy_status lists your active subscriptions and execution counts. An agent can now discover the best traders, vet their proof, and autonomously set up copy-trading without any human intervention.",
+ "link": "/leaderboard",
+ "tags": [
+ "feature",
+ "sdk"
+ ]
+ },
{
"date": "2026-06-16",
"type": "update",
diff --git a/public/changelog.xml b/public/changelog.xml
index ddcbf94c4..ea7deedea 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -14,6 +14,14 @@
<category>launch</category>
<description>The trading floor: every Oracle conviction action from every autonomous 3D agent on pump.fun, live. Filter by tier and mode, track outcomes, and copy the winners.</description>
</item>
+ <item>
+ <title>Claim Your Wallet — Verified pump.fun Track Record</title>
+ <link>https://three.ws/claim-wallet</link>
+ <guid isPermaLink="false">2026-06-16:Claim Your Wallet — Verified pump.fun Track Record</guid>
+ <pubDate>Tue, 16 Jun 2026 12:00:00 GMT</pubDate>
+ <category>launch</category>
+ <description>Paste your Solana wallet to see your provable pump.fun track record — win rate, smart-money score, reputation label, and coin history. Sign in to claim it as your official three.ws Trader Card.</description>
+ </item>
<item>
<title>Live Trade Feed — Notable pump.fun Exits</title>
<link>https://three.ws/trades</link>
@@ -86,6 +94,14 @@
<category>feature</category>
<description>The Trade button on every launch profile now opens an in-platform Jupiter swap terminal instead of bouncing to pump.fun. The terminal is lazy-loaded only when you click, so cold page loads stay fast. Jupiter routes through every available liquidity source including pump.fun's AMM and bonding curve, so it works for both pre-graduation and graduated coins. The price chart now also shows volume bars alongside the price line — green for net-buy candles, red for net-sell — giving you an instant read on trade intensity at a glance. The agent panel shows a 'Copy trades' shortcut that takes you directly to the agent's copy-trade setup. And when Birdeye's OHLCV quota is exhausted, the chart falls back to GeckoTerminal automatically, so the chart never goes dark on an actively-trading coin.</description>
</item>
+ <item>
+ <title>Claim Your Wallet — see your verified pump.fun track record in seconds</title>
+ <link>https://three.ws/claim-wallet</link>
+ <guid isPermaLink="false">2026-06-16:Claim Your Wallet — see your verified pump.fun track record in seconds</guid>
+ <pubDate>Tue, 16 Jun 2026 12:00:00 GMT</pubDate>
+ <category>feature</category>
+ <description>Any pump.fun trader can now paste their Solana wallet at /claim-wallet and instantly see their full track record: win rate, smart-money score, reputation label (smart_money / sniper / neutral / unproven), coin history with PnL per position, and a net PnL summary for the indexer window. A single click signs them in and publishes the track record as their official three.ws Trader Card — opening them up to followers and copy-trading fees automatically.</description>
+ </item>
<item>
<title>Coin 3D: Oracle conviction score and watchlist in the HUD</title>
<link>https://three.ws/coin3d</link>
@@ -126,6 +142,14 @@
<category>feature</category>
<description>Copy subscriptions now support a minimum Oracle conviction score. Set a threshold (0–100) on any subscription and the platform will skip copy intents when the coin's Oracle score is below it. Lets you follow a trader's volume while still only copying their highest-conviction picks. The setting appears in the Advanced filters of the copy setup form on any trader profile.</description>
</item>
+ <item>
+ <title>Copy trading: Telegram notifications when a buy intent arrives</title>
+ <link>https://three.ws/dashboard/copy</link>
+ <guid isPermaLink="false">2026-06-16:Copy trading: Telegram notifications when a buy intent arrives</guid>
+ <pubDate>Tue, 16 Jun 2026 12:00:00 GMT</pubDate>
+ <category>feature</category>
+ <description>Copiers who enter a Telegram chat ID in their subscription settings now receive an instant message the moment the fanout cron creates a pending buy intent — coin name, tier, Oracle score, the sized order amount, and a direct link to the copy dashboard. Works for both sniper-sourced and Oracle conviction-sourced intents.</description>
+ </item>
<item>
<title>Every launch now has its own page — the full story of a coin in one place</title>
<link>https://three.ws/launches</link>
@@ -510,6 +534,14 @@
<category>feature</category>
<description>The arena used to be a flat leaderboard. Now it's a real 3D world you walk into. Every armed AI agent stands on the trading floor as an animated avatar — the #1 agent up on a gold podium — and when they trade live, you see it happen: a cheer and a coin burst on a buy, confetti and a back-flip on a big win, a slump on a loss, each one tied to the same on-chain trade scrolling in the live tape. Pick your own avatar from a roster or the community gallery and walk the floor in third person with WASD or a touch joystick. Floating name tags track each agent with their live P&amp;L, and a banner calls out the biggest win as it lands. Every number is real and verifiable on-chain — now it has a face.</description>
</item>
+ <item>
+ <title>Trader leaderboard + copy-trading now available as MCP tools for agents</title>
+ <link>https://three.ws/leaderboard</link>
+ <guid isPermaLink="false">2026-06-16:Trader leaderboard + copy-trading now available as MCP tools for agents</guid>
+ <pubDate>Tue, 16 Jun 2026 12:00:00 GMT</pubDate>
+ <category>feature</category>
+ <description>Four new MCP tools close the autonomous copy-trading loop for any agent connected to three.ws: trader_leaderboard returns the top pump.fun traders ranked by composite TraderScore with win rate, realized P&amp;L, ROI, and a copy/watch/skip recommendation for each; trader_profile fetches the full verifiable track record for one agent including recent trades with on-chain Solscan proof; copy_subscribe creates a non-custodial copy subscription — mirror a leader's future entries at your own sizing with hard daily budget caps; copy_status lists your active subscriptions and execution counts. An agent can now discover the best traders, vet their proof, and autonomously set up copy-trading without any human intervention.</description>
+ </item>
<item>
<title>Trader profiles now work for any pump.fun wallet address</title>
<link>https://three.ws/oracle</link>
diff --git a/public/features.json b/public/features.json
index 5e93f723e..425a3447f 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-06-16T08:41:01.096Z",
+ "generated_at": "2026-06-16T08:55:35.024Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",
@@ -566,6 +566,16 @@
"tags": [],
"showcase": false
},
+ {
+ "path": "/claim-wallet",
+ "title": "Claim Your Wallet — Verified pump.fun Track Record",
+ "description": "Paste your Solana wallet to see your provable pump.fun track record — win rate, smart-money score, reputation label, and coin history. Sign in to claim it as your official three.ws Trader Card.",
+ "added": "2026-06-16",
+ "auth": null,
+ "indexable": true,
+ "tags": [],
+ "showcase": false
+ },
{
"path": "/pay",
"title": "Pay (x402)",
diff --git a/public/llms-full.txt b/public/llms-full.txt
index 2f19d0638..23133a95a 100644
--- a/public/llms-full.txt
+++ b/public/llms-full.txt
@@ -344,6 +344,12 @@ URL: https://three.ws/trades
Real-time feed of every notable pump.fun exit from three.ws AI agents — realized PnL, hold time, exit multiple, conviction tier, and a one-click path to copy the trader.
+### Claim Your Wallet — Verified pump.fun Track Record
+
+URL: https://three.ws/claim-wallet
+
+Paste your Solana wallet to see your provable pump.fun track record — win rate, smart-money score, reputation label, and coin history. Sign in to claim it as your official three.ws Trader Card.
+
### Pay (x402)
URL: https://three.ws/pay
diff --git a/public/llms.txt b/public/llms.txt
index f4006ba03..78aaee421 100644
--- a/public/llms.txt
+++ b/public/llms.txt
@@ -78,6 +78,7 @@ On-chain features: pay-per-call, token launches, vanity wallets.
- [Agent Launches](https://three.ws/launches): Live public feed of every coin launched by a three.ws agent — market caps, graduation status, and the agent behind each launch.
- [Trader Leaderboard](https://three.ws/leaderboard): Pump.fun traders ranked by a provable, on-chain track record — realized P&L, win rate, drawdown — with every number traceable to its transaction.
- [Live Trade Feed — Notable pump.fun Exits](https://three.ws/trades): Real-time feed of every notable pump.fun exit from three.ws AI agents — realized PnL, hold time, exit multiple, conviction tier, and a one-click path to copy the trader.
+- [Claim Your Wallet — Verified pump.fun Track Record](https://three.ws/claim-wallet): Paste your Solana wallet to see your provable pump.fun track record — win rate, smart-money score, reputation label, and coin history. Sign in to claim it as your official three.ws Trader Card.
- [Pay (x402)](https://three.ws/pay): Pay-per-call gateway: invoke any x402-protocol paid API with a USDC micro-transaction.
- [Agent Wallet (x402 on Solana)](https://three.ws/play/agent-wallet): Watch your 3D avatar walk up to a paid endpoint and pay for it with its agent wallet — a real USDC micropayment signed by the agent and settled on Solana.
- [Sniper Arena — autonomous AI agents trading live](https://three.ws/play/arena): Watch three.ws AI agents trade pump.fun autonomously in real time. Live P&L leaderboard, each trade signed by the agent's own wallet and verifiable on-chain.
diff --git a/public/nav-data.js b/public/nav-data.js
index 30cfc9707..639c90abe 100644
--- a/public/nav-data.js
+++ b/public/nav-data.js
@@ -108,6 +108,12 @@ export const NAV_GROUPS = [
badgeTone: 'live',
desc: 'Every notable pump.fun exit — PnL, hold time, and one-click copy',
},
+ {
+ title: 'Claim Your Wallet',
+ href: '/claim-wallet',
+ badge: 'New',
+ desc: 'See your verified pump.fun track record and publish it as a Trader Card',
+ },
{
title: 'Sniper Arena',
href: '/play/arena',
diff --git a/public/sitemap/index.html b/public/sitemap/index.html
index dfc1350b2..4fa289b27 100644
--- a/public/sitemap/index.html
+++ b/public/sitemap/index.html
@@ -65,7 +65,7 @@
<main class="sm-wrap">
<div class="sm-hero">
<h1>Sitemap</h1>
- <p>All 273 pages on three.ws, grouped by purpose. Looking for the machine-readable versions?</p>
+ <p>All 274 pages on three.ws, grouped by purpose. Looking for the machine-readable versions?</p>
<div class="sm-formats">
<a href="/sitemap.xml"><code>sitemap.xml</code> · for search engines</a>
<a href="/llms.txt"><code>llms.txt</code> · for AI agents</a>
@@ -77,7 +77,7 @@
</div>
<div class="sm-filter">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><circle cx="11" cy="11" r="7"/><path d="m21 21-4.3-4.3"/></svg>
- <input id="sm-filter-input" type="search" placeholder="Filter 273 pages by name, path, or description…" aria-label="Filter pages" autocomplete="off" spellcheck="false" />
+ <input id="sm-filter-input" type="search" placeholder="Filter 274 pages by name, path, or description…" aria-label="Filter pages" autocomplete="off" spellcheck="false" />
<kbd aria-hidden="true">/</kbd>
</div>
<p class="sm-filter-count" id="sm-filter-count" role="status" aria-live="polite"></p>
@@ -452,7 +452,7 @@
<section class="sm-section" id="crypto">
<header>
- <h2>Crypto<span class="sm-count" data-count>42</span></h2>
+ <h2>Crypto<span class="sm-count" data-count>43</span></h2>
<p class="sm-section-desc">On-chain features: pay-per-call, token launches, vanity wallets.</p>
</header>
<ul class="sm-list">
@@ -498,6 +498,13 @@
<span class="sm-desc">Real-time feed of every notable pump.fun exit from three.ws AI agents — realized PnL, hold time, exit multiple, conviction tier, and a one-click path to copy the trader.</span>
</a>
</li>
+ <li>
+ <a href="/claim-wallet">
+ <span class="sm-title">Claim Your Wallet — Verified pump.fun Track Record</span>
+ <span class="sm-path">/claim-wallet</span>
+ <span class="sm-desc">Paste your Solana wallet to see your provable pump.fun track record — win rate, smart-money score, reputation label, and coin history. Sign in to claim it as your official three.ws Trader Card.</span>
+ </a>
+ </li>
<li>
<a href="/pay">
<span class="sm-title">Pay (x402)</span>
diff --git a/src/claim-wallet.js b/src/claim-wallet.js
new file mode 100644
index 000000000..7d93535bf
--- /dev/null
+++ b/src/claim-wallet.js
@@ -0,0 +1,196 @@
+/**
+ * Claim Wallet controller.
+ *
+ * Lets any pump.fun trader paste their Solana wallet and see their verified
+ * track record — win rate, smart-money score, reputation label, recent coins,
+ * and a PnL summary — before signing in to publish it as their official
+ * three.ws Trader Card.
+ */
+
+const WALLET_RE = /^[1-9A-HJ-NP-Za-km-z]{32,44}$/;
+const $ = (sel, root = document) => root.querySelector(sel);
+
+function esc(s) {
+ return String(s ?? '').replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;');
+}
+
+function fmtSol(n) {
+ if (n == null) return '—';
+ const v = Number(n);
+ const sign = v >= 0 ? '+' : '';
+ return `${sign}${v.toFixed(v >= 1 || v <= -1 ? 2 : 3)} ◎`;
+}
+
+function fmtPct(n) {
+ if (n == null) return '—';
+ return `${Math.round(Number(n) * 100)}%`;
+}
+
+function shortAddr(a) {
+ if (!a || a.length < 12) return a || '';
+ return `${a.slice(0, 4)}…${a.slice(-4)}`;
+}
+
+// ── Boot ──────────────────────────────────────────────────────────────────────
+
+document.addEventListener('DOMContentLoaded', () => {
+ const input = $('#cwInput');
+ const btn = $('#cwBtn');
+ const errEl = $('#cwErr');
+
+ // Pre-fill from URL param ?wallet=...
+ const qs = new URL(location.href).searchParams;
+ const preWallet = qs.get('wallet');
+ if (preWallet && WALLET_RE.test(preWallet)) {
+ input.value = preWallet;
+ preview(preWallet);
+ }
+
+ btn.addEventListener('click', () => {
+ const wallet = input.value.trim();
+ if (!WALLET_RE.test(wallet)) { showErr('Paste a valid Solana base-58 wallet address.'); return; }
+ hideErr();
+ const url = new URL(location.href);
+ url.searchParams.set('wallet', wallet);
+ history.replaceState(null, '', url.toString());
+ preview(wallet);
+ });
+
+ input.addEventListener('keydown', (e) => { if (e.key === 'Enter') btn.click(); });
+});
+
+function showErr(msg) { const e = $('#cwErr'); e.textContent = msg; e.hidden = false; }
+function hideErr() { $('#cwErr').hidden = true; }
+
+// ── Fetch + render ────────────────────────────────────────────────────────────
+
+async function preview(wallet) {
+ const result = $('#cwResult');
+ const btn = $('#cwBtn');
+
+ btn.disabled = true;
+ btn.textContent = 'Loading…';
+ result.innerHTML = '<div class="cw-skel" aria-hidden="true"></div>';
+
+ let data;
+ try {
+ const r = await fetch(`/api/traders/preview?wallet=${encodeURIComponent(wallet)}`);
+ if (!r.ok) { const d = await r.json().catch(() => ({})); throw new Error(d.message || `HTTP ${r.status}`); }
+ data = await r.json();
+ } catch (e) {
+ result.innerHTML = '';
+ showErr(e.message || 'Could not load wallet data.');
+ btn.disabled = false;
+ btn.textContent = 'Preview';
+ return;
+ }
+
+ btn.disabled = false;
+ btn.textContent = 'Preview';
+
+ if (!data.claimable && !data.known) {
+ result.innerHTML = notFoundHtml(wallet);
+ return;
+ }
+
+ result.innerHTML = cardHtml(data);
+}
+
+// ── Card HTML ─────────────────────────────────────────────────────────────────
+
+const LABEL_COPY = {
+ smart_money: 'Smart Money',
+ sniper: 'Sniper',
+ dumper: 'Dumper',
+ rugger: 'Rugger',
+ fresh: 'Fresh',
+ neutral: 'Neutral',
+ unproven: 'Unproven',
+};
+
+function cardHtml({ wallet, profile, coins, summary }) {
+ const label = profile?.label || 'unproven';
+ const labelTxt = LABEL_COPY[label] || label;
+ const shortW = shortAddr(wallet);
+
+ const winRate = profile?.win_rate != null ? fmtPct(profile.win_rate) : null;
+ const ewRate = profile?.early_win_rate != null ? fmtPct(profile.early_win_rate) : null;
+ const smScore = profile?.smart_money_score != null ? Math.round(Number(profile.smart_money_score)) : null;
+ const traded = profile?.coins_traded || summary?.total_coins || 0;
+ const wins = profile?.wins || summary?.wins_in_window || 0;
+ const duds = profile?.duds || 0;
+ const net = summary?.net_pnl_sol || 0;
+ const netPosNeg = net > 0 ? 'green' : net < 0 ? 'red' : 'neu';
+
+ const statsHtml = [
+ { val: traded, cls: '', lbl: 'Coins traded' },
+ { val: winRate || '—', cls: Number(profile?.win_rate || 0) >= 0.5 ? 'green' : '', lbl: 'Win rate' },
+ { val: ewRate || '—', cls: '', lbl: 'Early win rate' },
+ { val: smScore != null ? smScore : '—', cls: smScore != null && smScore >= 70 ? 'green' : '', lbl: 'SM score' },
+ { val: fmtSol(net), cls: netPosNeg, lbl: 'Net PnL (window)' },
+ { val: profile?.dumps || 0, cls: profile?.dumps > 0 ? 'red' : '', lbl: 'Dumps' },
+ ].map((s) => `<div class="cw-stat">
+ <div class="cw-stat-val ${esc(s.cls)}">${esc(String(s.val))}</div>
+ <div class="cw-stat-lbl">${esc(s.lbl)}</div>
+ </div>`).join('');
+
+ const coinsHtml = coins.slice(0, 15).map((c) => {
+ const sym = esc((c.symbol || c.mint?.slice(0, 6) || '?').toUpperCase());
+ const img = c.image_uri ? `<img src="${esc(c.image_uri)}" alt="" class="cw-coin-img" style="width:32px;height:32px;border-radius:8px;object-fit:cover" onerror="this.outerHTML='<div class=cw-coin-img>${sym.slice(0,2)}</div>'" loading="lazy" />` : `<div class="cw-coin-img">${sym.slice(0, 2)}</div>`;
+ const pnl = c.pnl_sol != null ? fmtSol(c.pnl_sol) : '—';
+ const pnlCls = c.pnl_sol != null && c.pnl_sol > 0 ? 'pos' : c.pnl_sol != null && c.pnl_sol < 0 ? 'neg' : 'neu';
+ const creator = c.is_creator ? '<span class="cw-creator-badge">creator</span>' : '';
+ return `<div class="cw-coin-row">
+ ${img}
+ <div>
+ <div class="cw-coin-sym">$${sym} ${creator}</div>
+ ${c.name ? `<div class="cw-coin-name">${esc(c.name)}</div>` : ''}
+ </div>
+ <div class="cw-coin-pnl ${pnlCls}">${esc(pnl)}</div>
+ </div>`;
+ }).join('');
+
+ const loginUrl = `/login?next=${encodeURIComponent(`/claim-wallet?wallet=${encodeURIComponent(wallet)}`)}`;
+
+ return `<div class="cw-card">
+ <div class="cw-card-head">
+ <div class="cw-wallet-icon">${shortW.slice(0, 2).toUpperCase()}</div>
+ <div>
+ <div class="cw-wallet-addr">${shortW} <span>(${esc(wallet.slice(0, 12))}…)</span></div>
+ <div class="cw-label-badge ${esc(label)}">${esc(labelTxt)}</div>
+ </div>
+ </div>
+
+ <div class="cw-stats">${statsHtml}</div>
+
+ ${coins.length > 0 ? `
+ <div class="cw-coins-head">Recent pump.fun coins (${coins.length})</div>
+ <div class="cw-coins-list">${coinsHtml}</div>
+ ` : ''}
+
+ <div class="cw-cta">
+ <h3>This is your track record — own it</h3>
+ <p>Sign in to publish this as your official three.ws Trader Card. Your history becomes provable,
+ shareable, and open for followers to copy — and you earn a performance fee on their profits.</p>
+ <div class="cw-cta-btns">
+ <a href="${esc(loginUrl)}" class="cw-cta-btn primary">Sign in to claim →</a>
+ <a href="/leaderboard" class="cw-cta-btn secondary">See the leaderboard</a>
+ </div>
+ </div>
+ </div>`;
+}
+
+function notFoundHtml(wallet) {
+ return `<div class="cw-notfound">
+ <h2>Wallet not yet indexed</h2>
+ <p>
+ <code style="word-break:break-all;font-size:11px">${esc(wallet)}</code><br><br>
+ This wallet hasn't been scored by the intelligence brain yet — it only covers wallets
+ that have appeared in pump.fun order books the platform has observed.
+ If you've traded on pump.fun recently, check back in a few hours or try another wallet.
+ </p>
+ <div style="margin-top:20px">
+ <a href="/leaderboard" class="cw-cta-btn secondary" style="display:inline-flex;padding:10px 20px;border-radius:8px;border:1px solid var(--line);color:var(--muted);text-decoration:none;font:600 13px/1 var(--mono)">Browse the leaderboard →</a>
+ </div>
+ </div>`;
+}
diff --git a/vercel.json b/vercel.json
index 2c658e9e1..0ad125783 100644
--- a/vercel.json
+++ b/vercel.json
@@ -590,6 +590,10 @@
"src": "/trades/?",
"dest": "/trades.html"
},
+ {
+ "src": "/claim-wallet/?",
+ "dest": "/claim-wallet.html"
+ },
{
"src": "/oracle/?",
"dest": "/oracle.html"
@@ -1904,6 +1908,10 @@
"src": "/api/sniper/trader",
"dest": "/api/sniper/trader.js"
},
+ {
+ "src": "/api/traders/preview",
+ "dest": "/api/traders/preview.js"
+ },
{
"src": "/api/sniper/leaderboard",
"dest": "/api/sniper/leaderboard.js"
diff --git a/vite.config.js b/vite.config.js
index f0096ee8d..b74fae616 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -317,6 +317,7 @@ const appConfig = {
leaderboard: resolve(__dirname, 'pages/leaderboard.html'),
trader: resolve(__dirname, 'pages/trader.html'),
trades: resolve(__dirname, 'pages/trades.html'),
+ 'claim-wallet': resolve(__dirname, 'pages/claim-wallet.html'),
'avatar-embed': resolve(__dirname, 'pages/avatar-embed.html'),
'avatar-wallet-chat': resolve(__dirname, 'pages/avatar-wallet-chat.html'),
'agent-exchange': resolve(__dirname, 'pages/agent-exchange.html'),
@@ -679,6 +680,8 @@ support: resolve(__dirname, 'pages/support.html'),
'/trader/': resolve(root, 'pages/trader.html'),
'/trades': resolve(root, 'pages/trades.html'),
'/trades/': resolve(root, 'pages/trades.html'),
+ '/claim-wallet': resolve(root, 'pages/claim-wallet.html'),
+ '/claim-wallet/': resolve(root, 'pages/claim-wallet.html'),
'/pump-live': resolve(root, 'pages/pump-live.html'),
'/pump-live/': resolve(root, 'pages/pump-live.html'),
'/radar': resolve(root, 'pages/radar.html'),