Description
The frontend relies on the backend to estimate transaction fees accurately. Querying Horizon directly from the frontend exposes API keys and rate limits. The backend should proxy and cache this.
Acceptance Criteria
Technical Details
- Return the exact structure documented in the README:
{ success: true, data: { baseFee, priorityFee, estimatedTotal } }.
Description
The frontend relies on the backend to estimate transaction fees accurately. Querying Horizon directly from the frontend exposes API keys and rate limits. The backend should proxy and cache this.
Acceptance Criteria
GET /api/v1/network/feesin aNetworkController./fee_statsendpoint via theStellarService.baseFeeandpriorityFeemetrics.@nestjs/cache-manager) to store this result for 30 seconds, so 1,000 active users only trigger 2 backend requests per minute.Technical Details
{ success: true, data: { baseFee, priorityFee, estimatedTotal } }.