Summary
Return balance plus aggregate totals (sent, received, transaction count) in one call so the dashboard can avoid multiple round-trips.
Scope
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
Summary
Return balance plus aggregate totals (sent, received, transaction count) in one call so the dashboard can avoid multiple round-trips.
Scope
Likely files
src/routes/WalletRoutes.jssrc/models/Transaction.js,src/models/Wallet.jsAcceptance criteria
/wallet/balanceremains for compatibilityVerification
Labels:
backend,enhancement,help wanted