Tiny Vercel Edge Function that watches Solana's Memo program for nt1:
prefixed memos and indexes them in Upstash KV. The NoTrace wallet hits this
endpoint instead of doing 100% client-side scanning, which is much faster
when your inbox is sparse.
GET /api/recent?since=<slot>&limit=200
Returns up to limit recent nt1: memos with {signature, slot, eph_pub_b58}.
vercel devRequires UPSTASH_REDIS_REST_URL and UPSTASH_REDIS_REST_TOKEN env vars.
Pure client-side scanning fetches every memo-program signature and parses it. That's fine for a few requests but eats RPC budget fast. The mirror polls once globally; each wallet just diffs against the last seen slot.
The mirror is read-only public data — it sees ephemeral pubs, never recipient identities. ECDH still happens locally in the wallet.