Skip to content

feat(invoice): blockchain confirmation block counter widget - #546

Open
Nuwe10 wants to merge 1 commit into
Stellar-split:mainfrom
Nuwe10:feature/515-blockchain-confirmation-counter
Open

feat(invoice): blockchain confirmation block counter widget#546
Nuwe10 wants to merge 1 commit into
Stellar-split:mainfrom
Nuwe10:feature/515-blockchain-confirmation-counter

Conversation

@Nuwe10

@Nuwe10 Nuwe10 commented Jul 29, 2026

Copy link
Copy Markdown

Summary

Adds live Stellar ledger confirmation tracking after a transaction is submitted.

Changes:

  • src/app/api/tx/[hash]/route.ts — queries Horizon /transactions/<hash> and /ledgers?order=desc&limit=1 to compute confirmations vs FINALITY_THRESHOLD (3)
  • src/hooks/useTransactionConfirmations.ts — polls every 5s, pauses when tab is hidden (Page Visibility API), auto-stops at threshold
  • src/components/invoice/ConfirmationCounter.tsx — circular SVG arc filling proportionally, displays "Confirmed" + green checkmark when finalized

Validation: No TypeScript diagnostics in modified files.

Closes #515

Closes Stellar-split#515

- Add GET /api/tx/[hash]/route.ts: queries Horizon for tx ledger and current ledger to compute confirmations
- Add useTransactionConfirmations hook: polls every 5s, pauses on hidden tab, stops at FINALITY_THRESHOLD
- Add ConfirmationCounter component: circular SVG arc filling to threshold, shows 'Confirmed' + checkmark when done
@vercel

vercel Bot commented Jul 29, 2026

Copy link
Copy Markdown

@Nuwe10 is attempting to deploy a commit to the kingsman-99's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Jul 29, 2026

Copy link
Copy Markdown

@Nuwe10 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Blockchain Confirmation Block Counter Widget

1 participant