Skip to content

. Add GET /api/v1/rewards/transactions endpoint #336

Description

@DeFiVC

What: Add an endpoint that returns all reward-related blockchain transactions for the user, with on-chain verification status.

Why: Users want to verify their reward transactions on-chain. Currently the API only returns the tx hash, not the verification status.

Scope: Create endpoint that queries quizSubmissions with txHash, verifies each transaction on Stellar Horizon, and returns verification status (confirmed/pending/failed).

Acceptance criteria:

  • Returns all reward transactions with verification status
  • Status is verified against Stellar Horizon
  • Cached for 30s
  • Includes block height and confirmation count

Technical context: src/stellar/client.ts — Horizon queries. src/modules/rewards/reward.service.ts — reward operations.


Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions