Skip to main content
LumenWipe is non-custodial: the key that signs a close stays in the browser or in the user’s wallet. This page lists every other piece of data the service handles, where it goes and how long it stays there, written from the code. The fields the API writes to its logs are listed in full in Logging and privacy. How the service is protected is on the security posture page. Status as of 2026-11-16, checked against commit 7e3e555. Each statement names the file that proves it. bun run check:docs fails the build when a file or symbol cited here no longer exists, and when the analytics tools named under What third parties receive differ from the ones the web app loads. It checks names, not meaning: whether the cited code still does what the sentence says stays a review question.

What reaches the API

The browser never calls the API directly. It calls same-origin /api/... routes on the web server, and those call the API server-side with the web’s own API key (apps/web/lib/api/server-client.ts#getApiClient). That call carries only the key, the SDK version and the content type as headers (packages/sdk/src/http.ts), so the visitor’s IP address is not passed on to the API. An answer to a plan question names the question and the choice, plus a slippage limit, a minimum output and the quote provider for a conversion (packages/types/src/close-api.ts#DecisionAnswer). No request carries a secret key: signing happens in the browser or in the wallet, and the API receives only signed envelopes (INV-22 in the invariant register).

What is logged

The API writes one JSON line per request with its request id, the route pattern, the status, the latency, the API key’s label and the network (apps/api/src/common/json-logger.ts#JsonLogger). Every response carries the request id in X-Request-Id (apps/api/src/common/request-context.ts#REQUEST_ID_HEADER). Request and response bodies, memos, exchange destinations, secret keys, bearer tokens, signed envelopes and client IP addresses are never written; any other account address is cut to its first and last four characters plus a keyed hash. The logger applies these rules to every line before it leaves the process (apps/api/src/common/log-privacy.ts#scrubValue). The full field list is in Logging and privacy. The web server logs a rate-limiter failure as its route namespace and the kind of failure, never the IP, its hash or the error text (apps/web/lib/upstash-redis.ts#checkNamespacedRateLimit), and a Content Security Policy report as the violated directive and the blocked origin only (apps/web/lib/api/csp-report.ts#blockedSource).

What the API stores

The API keeps no record of a close in progress. What it does keep is in Firestore (apps/api/src/config/firestore.ts): The API’s own rate limiter counts requests per API key, or per client address for a request without a valid key, in the memory of the instance that served it for the length of the throttle window, and writes neither to Firestore (apps/api/src/auth/rate-limiter.ts#clientIdentity, apps/api/src/app.module.ts). Signing in to manage self-serve keys with a wallet stores nothing: the challenge and the session token are each derived from the address and a time with a server-held key, and checked by recomputing them (apps/api/src/integrator/wallet-auth.ts#buildChallenge, apps/api/src/integrator/wallet-auth.ts#issueSession). A contract account’s sign-in is the same, except that the hash of a challenge’s nonce is kept once the challenge is used, so it cannot be used again. Its signed authorization goes to the RPC providers the API reads the network from, to be simulated (apps/api/src/integrator/contract-auth.ts#verifyOnEveryProvider).

What the web server stores

The web server’s Redis store (Upstash) holds rate-limit counters only. Each key holds the route namespace, the UTC day and the first 16 hex characters of an HMAC-SHA-256 of the route, the UTC day and the visitor’s IP address, under a secret held by the operator (RATE_LIMIT_HASH_KEY). The address cannot be recovered by enumerating IPs, and the value changes every day and differs per route (apps/web/lib/upstash-redis.ts#checkNamespacedRateLimit, used by apps/web/lib/api/rate-limit.ts#rateLimitProxy). The playground’s rate-limit counters hash the IP the same way under its own RATE_LIMIT_HASH_KEY, with playground: before the route (apps/playground/lib/rate-limit.ts#createRateLimiter).

What stays in the browser

A secret key typed into the secret-key mode is held in memory only and is wiped on completion, on abort, on leaving the flow or on “Forget key” (INV-22).

What third parties receive

The API runs on Google Cloud Run and keeps the data above in Firestore in the same Google Cloud project; its logs go to Cloud Logging there. The web app sends no custom analytics events, so no account address, transaction, memo or key reaches either analytics tool (Logging and privacy).

Retention

Using the hosted API from the SDK

An integrator who calls the hosted API, directly or through @lumenwipe/sdk, sends it everything listed under What reaches the API for each close it runs, and the API passes the parts each service needs to the third parties listed above. The integrator’s API key travels as a bearer token and is stored only as a hash. The API keeps the key record and usage counts described under What the API stores; for a self-serve key the owner is the wallet address that signed in. A request sent from an end user’s browser rather than from the integrator’s server is rate limited by that browser’s IP address, in memory, and the address is not logged.