Skip to content

Add rate limiting feedback and retry UI on failed transactions #309

Description

@Kingsman-99

Overview

When a Freighter transaction fails due to RPC rate limits or network errors, the app currently shows no feedback. Add retry logic and clear error messaging.

Acceptance Criteria

  • useTransactionWithRetry(fn, options) hook wraps SDK mutation calls
  • On failure: shows a toast with the error message and a "Retry" button
  • On RPC rate limit (error code 429): auto-retries after 3s with countdown shown
  • Max 3 auto-retries; after that, shows "Please try again later" with a manual retry button
  • User can cancel a retry at any time
  • All mutations (pay, create, release, refund) wrapped in this hook

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions