Skip to content

Private account activity ​

/admin is a private workspace on the same deployment as the public app. It has no public navigation link. It uses the existing wallet signature sign-in; no email setup or new consent flow is required.

Access ​

Set ADMIN_WALLETS in the server environment to a comma-separated list of approved Ethereum wallet addresses. The approved operator wallet is 0x46A24e0555B8A28b8a9eFF98267dFdaA2Ad3B1f2. This is a server-only setting: never use a NEXT_PUBLIC_ variable for it. The initial staging configuration contains only this wallet.

The page checks the signed session before rendering the dashboard. Every request to /api/admin/analytics independently checks that same signed session against the current allowlist before reading any activity data. A query parameter or header cannot supply admin identity. An absent, empty, or malformed allowlist denies everyone; a malformed entry invalidates the entire list. A normal signed-in wallet gets no private report.

The page and API are dynamic, have private, no-store response headers, and opt out of search indexing. The report is never stored in local storage or a shared response cache. Signing out clears the displayed report. Authentication changes broadcast by another tab also clear it and abort outstanding reads. Leaving the admin tab clears its private content; returning to it checks server authorization again before restoring the report. Responses started before an authentication boundary cannot restore cleared data. The displayed operator wallet comes from the same newly authorized report response. Changing the environment requires restarting the app with the updated server environment, following the deployment runbook.

Admin sign-ins are excluded from activity collection. The sign-in client captures an explicit admin context before opening the wallet prompt, so this exclusion works with the page's no-referrer policy and survives navigation while the prompt is open. The context only suppresses analytics; signature verification and the server allowlist still decide access. A subsequent public-app sign-in is recorded as a returning login, without inventing a signup date.

Reading a report ​

The Wallet field accepts a complete address or a prefix beginning with 0x and at least four hexadecimal characters. From and To are inclusive UTC calendar dates, with a maximum range of 366 days and no future dates. The initial range is the last 30 UTC dates including today. Apply filters starts a new result set. Accounts are sorted by wallet address; Load more accounts adds the next 50.

Only identities with evidence of a verified sign-in or observed authenticated activity appear. A wallet that exists only as a tracked portfolio address is not counted as an app user. Anonymous browser activity is collected only in Google Analytics; it is not stored in this account report or retroactively linked to a wallet after sign-in.

Do Not Track and Global Privacy Control suppress Google Analytics only. Signed-in account activity, including public-app signups, logins, feature usage and active time, is recorded in Creddit's own database even when either setting is enabled. Such accounts can appear here without appearing as active users in Google Analytics. Admin-page sign-ins and activity remain excluded.

Accounts whose activity was previously suppressed begin appearing after their next public-app sign-in or authenticated visit. Earlier missing activity is not reconstructed, and a returning user's signup date remains unknown rather than being replaced with the date collection resumed.

  • Signed up is a signup observed after collection began. Historical accounts show Unknown and Before tracking began; account creation and first tracking dates are never substituted for signup.
  • First observed is the first authenticated activity observed after collection began. Historical rows can remain unknown until an observation exists.
  • First verified sign-in is the first newly verified wallet signature recorded after collection began. It is separate from signup.
  • Last activity is the latest retained activity, independent of the selected date range. When only a retained daily summary remains, the display shows a date without inventing a time.
  • Days counts UTC dates with recorded events in the selected range. Visits counts account sessions beginning after more than 30 minutes without activity, combined across tabs and devices and attributed to their starting date.
  • Active min counts observed focused interaction time, combining overlapping intervals across tabs/devices. It is an estimate of active use rather than time a background tab remains open.

Select a wallet to see its opaque analytics user ID, account dates, date-scoped totals, Feature usage, and Activity history. Feature counts use retained daily summaries, so they remain available for 12 months. Heartbeats, authentication events and request-failure diagnostics are excluded from the feature table. Each feature's Last used is a UTC date. Detailed history is newest first with stable timestamp-and-event-ID pagination, 50 events per page, and is retained for 90 days. The page states the earliest detailed history date for the current range. History includes safe structured event properties, with no free-form error text. Request failures appear as Request failed, with a fixed operation name, failure code, HTTP status when available, and bounded elapsed time.

Reports combine stored older daily summaries with the shared recent-event projection. The recent projection replaces overlapping daily summaries and combines overlapping active intervals before counting them, so a delayed maintenance run does not stale or double-count today's totals. Every report query has a short database statement/lock timeout. The overview is limited before aggregation; recent projection reads only the identities on that bounded result page. Opening an account uses four bounded SQL queries independent of the number of accounts shown.

For the collection vocabulary, retention, identity attribution, and maintenance workflow, see Account activity schema and Account activity maintenance.

Data quality register ​

Under the account report, the Data quality register lists every rate, yield, fee and basis reading the data checks rejected, flagged or restated, and every Incident day (a UTC day on which four or more unrelated series printed a one-off reading), newest first, 50 at a time; Load older entries adds the next 50. Each entry shows When (UTC), the Series (for example Yield · sUSDai or Morpho · USDC/fxSAVE 0x17f7ae), the Outcome (Rejected, Flagged (still shown), Restated or Incident day), the Rule in words and the stored Detail (the value and the bound it broke, the pool size a thin pool's fee yield was measured on, or the realised rate a dip was restated to). A flag is a reading every page still serves: today only Thin pool (accepted, flagged), a fee yield measured on a pool under $30,000. A reading that is only in its series' first 10 days (its launch window, left off the charts) is a standing state rather than a finding and is not listed one by one; a rejected or thin one inside it is. It is read only: nothing on the page changes a verdict, which only the six-hourly judge and the gated re-judge write.

The register is part of the private workspace: it is shown only while an authorized report is, so every boundary that clears the report (signing out, another tab's sign-out, leaving the tab) removes it too, and its own request is authorized again against the same signed session and ADMIN_WALLETS allowlist. Before migration 155 is applied it says the data checks are not active on that database yet.

GET /api/admin/series-quality accepts only before, the cursor returned in nextCursor; any other or repeated parameter, or a malformed cursor, is a 400. Signed out is 401, a wallet outside the allowlist 403, a database failure a generic 503. The read runs in one read-only transaction with the same short statement and lock timeouts as the report, and each source is read through a partial index on its flagged rows, each ordered by the page's own sort (time, series, outcome) so that entries sharing a timestamp page in a fixed order.

Private read API ​

GET /api/admin/analytics supports only from, to, search, wallet, afterAccount, and before. Unknown or repeated parameters are rejected. wallet selects an account to inspect; it never changes the authenticated actor. afterAccount and before are the cursors returned in nextAccountsCursor and nextHistoryCursor. History cursors require a selected wallet. Results contain no raw identity binding or authentication secret.

Signed-out requests return 401; signed-in wallets outside the allowlist return 403. Invalid report parameters return 400. Database failures return a generic 503 without query text, connection details, or private properties.

Private documentation. creddit.xyz