Skip to content

Sub-Issue 3: API Routes Update (Summon-Compatible) #204

@Andre-Diamond

Description

@Andre-Diamond

Problem: API routes assume SDK wallets and fail on Summon wallets.

Tasks:

  • Update src/pages/api/v1/freeUtxos.ts to use the Summon capability builder for address resolution.
  • Update src/pages/api/v1/nativeScript.ts to return decoded scripts and types for Summon wallets.
  • Update src/server/api/routers/transactions.ts to verify script addresses using Summon-derived addresses when appropriate.
  • Update src/pages/api/v1/stats/run-snapshots-batch.ts to resolve Summon addresses for balance snapshots.

Affected files:

  • src/pages/api/v1/freeUtxos.ts
  • src/pages/api/v1/nativeScript.ts
  • src/server/api/routers/transactions.ts
  • src/pages/api/v1/stats/run-snapshots-batch.ts

Acceptance:

  • Summon wallets can fetch UTxOs, scripts, and perform transaction checks without errors.
  • Summon wallets can be included in balance snapshot runs without build failures.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions