Problem
If a user submits a signed XDR and the API crashes
before confirming, the user might resubmit the same
transaction. No idempotency mechanism exists.
What To Build
- Add idempotency_key to transaction submission
- Create idempotency_records table
- Transaction hash deduplication
- XDR validation before submission
Files To Touch
- src/modules/blockchain/blockchain.service.ts
- src/modules/blockchain/blockchain.controller.ts
- supabase/migrations/[ts]_idempotency_records.sql
Acceptance Criteria
Mandatory Checks Before PR
Problem
If a user submits a signed XDR and the API crashes
before confirming, the user might resubmit the same
transaction. No idempotency mechanism exists.
What To Build
Files To Touch
Acceptance Criteria
Mandatory Checks Before PR