r/web3 • • 21d ago

Should Web3 payment infrastructure separate transaction detection from payment reconciliation?

One challenge in building blockchain payment systems is that detecting a transaction and deciding whether an invoice is actually paid are two different problems.

A transaction may be detected but still be pending confirmation. It may also arrive in multiple partial transfers, exceed the expected amount, or appear before a chain reorganization changes its status.

I'm exploring an architecture that separates these responsibilities:

  • Transaction detection: Observe and record on-chain activity.
  • Confirmation tracking: Handle confirmations and chain reorganizations.
  • Payment reconciliation: Match transactions against invoices using exact amounts and explicit state transitions.
  • Event delivery: Notify applications only when payment states change reliably.

I'm curious how other Web3 developers approach this separation.

Would you keep reconciliation inside the payment service, or make it an independent component consuming normalized transaction events?

What trade-offs have you encountered with either approach?

3 Upvotes

2 comments sorted by

1

u/[deleted] 14d ago

[removed] — view removed comment

1

u/AutoModerator 14d ago

Your comment in /r/web3 was automatically removed because /r/web3 does not accept posts from accounts that have existed for less than 14 days.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.