Repository navigation
feat(v4): track key exports for migration visibility - #2466
Conversation
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
This PR adds an observability hook to the signer client so that successful wallet key exports trigger a best-effort tracking request to a new signer API route.
Changes:
- Adds a fire-and-forget
POST /v1/track-key-exportrequest afterexportWalletAccountreturns anexportBundle. - Introduces the
/v1/track-key-exportroute definition in theSignerEndpointstype, including payload shape and response type.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
account-kit/signer/src/client/types.ts |
Adds the new /v1/track-key-export endpoint type definition for the typed request helper. |
account-kit/signer/src/client/base.ts |
Sends a non-blocking tracking request after a successful export bundle is produced, without impacting the export flow on failure. |
Success is implied by 200 status, matching existing patterns. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
| this.request("/v1/track-key-export", { | ||
| orgId: organizationId, | ||
| accountAddress: account.address, | ||
| type: opts.type === "ETHEREUM" ? "ETH" : "SOL", | ||
| }).catch(() => {}); | ||
|
|
There was a problem hiding this comment.
The cleaner way of doing this would be to proxy the exportWalletAccount call above through our signer service and logging it as it's exported. We do this for a few other endpoints (take in the stamped request and forward the result back)
Given that we're winding this down I feel less strongly, but if we weren't I'd want to do that instead. Your call
There was a problem hiding this comment.
i feel like not doing that since we are winding down.
also feels like slightly better optics to not proxy anything w/ key material through us, even if it is encrypted.
but lmk if you feel strongly & i'll change.
There was a problem hiding this comment.
pretty sure we alr proxy multi owner key exports FYI. another reason to prefer proxying is that people can't just spam us to pollute our db. happy with this though per our conversation on slack
Co-Authored-By: Claude <noreply@anthropic.com>
* chore: remove arb nova (alchemyplatform#2464) Co-authored-by: Claude <noreply@anthropic.com> * chore(release): publish v4.87.2 [skip-ci] * feat(v4): track key exports for migration visibility (alchemyplatform#2466) * Track key exports via /v1/track-key-export endpoint for observability Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Use empty response type for track-key-export endpoint Success is implied by 200 status, matching existing patterns. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * chore: update docs gen Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * chore(release): publish v4.88.0 [skip-ci] * chore: bump next.js, minimatch, and lerna (alchemyplatform#2467) * fix: upgrade Next.js 14 → 15.5.15 to resolve high-severity DoS vulnerability (Dependabot alchemyplatform#361, alchemyplatform#362, alchemyplatform#363) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix: bump minimatch to patched versions and upgrade lerna to v9 Upgrades lerna from v8 to v9 which brings in nx 22.x, eliminating pinned vulnerable minimatch versions. All transitive minimatch dependencies now resolve to patched releases. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * chore: fmt --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * chore(release): publish v4.88.1 [skip-ci] * docs: update v5 SDK reference docs for 5.0.0-beta.25 (alchemyplatform#2475) Co-authored-by: gha-aa-sdk[bot] <269827238+gha-aa-sdk[bot]@users.noreply.github.com> * docs: update v5 SDK reference docs for 5.0.0-beta.26 (alchemyplatform#2482) Co-authored-by: gha-aa-sdk[bot] <269827238+gha-aa-sdk[bot]@users.noreply.github.com> * fix: disallow more permission builder selectors (alchemyplatform#2485) Port v5 selector restrictions to v4 — block installValidation, uninstallValidation, installExecution, uninstallExecution, and upgradeToAndCall from being added to session key allowlists. Refactors individual checks into shared assertion helpers with case-insensitive matching. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * chore(release): publish v4.88.2 [skip-ci] * docs: update v5 SDK reference docs for 5.0.0-beta.27 (alchemyplatform#2489) Co-authored-by: gha-aa-sdk[bot] <269827238+gha-aa-sdk[bot]@users.noreply.github.com> --------- Co-authored-by: jakehobbs <jacob.hobbs@alchemy.com> Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Alchemy Bot <alchemy-bot@alchemy.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: gha-aa-sdk[bot] <269827238+gha-aa-sdk[bot]@users.noreply.github.com>
* chore: remove arb nova (alchemyplatform#2464) * chore(release): publish v4.87.2 [skip-ci] * feat(v4): track key exports for migration visibility (alchemyplatform#2466) * Track key exports via /v1/track-key-export endpoint for observability * Use empty response type for track-key-export endpoint Success is implied by 200 status, matching existing patterns. * chore: update docs gen --------- * chore(release): publish v4.88.0 [skip-ci] * chore: bump next.js, minimatch, and lerna (alchemyplatform#2467) * fix: upgrade Next.js 14 → 15.5.15 to resolve high-severity DoS vulnerability (Dependabot alchemyplatform#361, alchemyplatform#362, alchemyplatform#363) * fix: bump minimatch to patched versions and upgrade lerna to v9 Upgrades lerna from v8 to v9 which brings in nx 22.x, eliminating pinned vulnerable minimatch versions. All transitive minimatch dependencies now resolve to patched releases. * chore: fmt --------- * chore(release): publish v4.88.1 [skip-ci] * docs: update v5 SDK reference docs for 5.0.0-beta.25 (alchemyplatform#2475) * docs: update v5 SDK reference docs for 5.0.0-beta.26 (alchemyplatform#2482) * fix: disallow more permission builder selectors (alchemyplatform#2485) Port v5 selector restrictions to v4 — block installValidation, uninstallValidation, installExecution, uninstallExecution, and upgradeToAndCall from being added to session key allowlists. Refactors individual checks into shared assertion helpers with case-insensitive matching. * chore(release): publish v4.88.2 [skip-ci] * docs: update v5 SDK reference docs for 5.0.0-beta.27 (alchemyplatform#2489) --------- Co-authored-by: jakehobbs <jacob.hobbs@alchemy.com> Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Alchemy Bot <alchemy-bot@alchemy.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: gha-aa-sdk[bot] <269827238+gha-aa-sdk[bot]@users.noreply.github.com>
Summary
/v1/track-key-exportafter a successful wallet key export in the signer clientSignerEndpointsTest plan
.catch(() => {}))🤖 Generated with Claude Code
PR-Codex overview
This PR introduces a new API endpoint for tracking key exports and updates several type definitions in the codebase. It enhances the functionality related to account management and multi-owner operations.
Detailed summary
"/v1/track-key-export"with requestBodycontainingorgId,accountAddress, andtype.account-kit/signer/src/client/types.ts.