Skip to main content

Overview

When you send ecash tokens, they remain in a “pending” state until the recipient claims them. The Pending Ecash Sweeper allows you to rollback (reclaim) these unclaimed tokens back to your wallet.

Pending Transaction States

Send States

app/pendingEcash.tsx
Prepared: Token created but not yet shared or delivered Pending: Token shared, waiting for recipient to claim

Pending Ecash Screen

Grouped by Mint

Pending transactions are organized by mint:
app/pendingEcash.tsx

Mint Tabs

Tabs show pending count and total amount per mint:
app/pendingEcash.tsx

Rollback Operation

Individual Rollback

Rollback a single pending transaction:

Bulk Rollback (Sweep)

Rollback all pending transactions for a mint:
app/pendingEcash.tsx

Loading States

Individual transactions show loading state during rollback:
app/pendingEcash.tsx

Hero Card

The pending ecash screen features a hero card showing total pending count:
app/pendingEcash.tsx

Card Frame

Custom gradient card frame for pending ecash:
components/blocks/pending/PendingEcashCardFrame.tsx

Sweep Button

Bottom button shows total amount being reclaimed:
app/pendingEcash.tsx

Empty State

Shown when no pending ecash exists:
app/pendingEcash.tsx

Hero Transition

The pending ecash screen uses hero transitions for smooth navigation:
app/pendingEcash.tsx

Use Cases

Accidental Sends

Reclaim tokens sent by mistake before recipient claims

Expired Offers

Rollback promotional or time-limited token offers

Failed Deliveries

Reclaim tokens that couldn’t be delivered to recipient

Wallet Cleanup

Periodically sweep old pending tokens back to active balance

Best Practices

  • Check pending ecash regularly to reclaim unclaimed tokens
  • Wait reasonable time before reclaiming (recipient may be slow to claim)
  • Consider notifying recipient before reclaiming if via Nostr
  • Use sweep feature to reclaim multiple tokens efficiently