Skip to content

[BACKEND] Add a GET /wallet summary endpoint #37

Description

@Trovic1

Summary

Return balance plus aggregate totals (sent, received, transaction count) in one call so the dashboard can avoid multiple round-trips.

Scope

  • backend only

Likely files

  • src/routes/WalletRoutes.js
  • src/models/Transaction.js, src/models/Wallet.js

Acceptance criteria

  • New authenticated route returns balance + totals
  • Totals computed correctly in both storage modes
  • Existing /wallet/balance remains for compatibility

Verification

  • Compare endpoint output to the existing per-call values

Labels: backend, enhancement, help wanted


Metadata

Metadata

Assignees

No one assigned

    Labels

    backendBackend / API workenhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions