#856 Backend: Transaction status push webhook for frontend polling of…#970
Open
solidsole wants to merge 4 commits into
Conversation
…ling offload FIXED
|
@solidsole 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! 🚀 |
…-webhook-for-frontend-polling-offload-FIX
…-webhook-for-frontend-polling-offload-FIX
Contributor
Author
|
PLEASE REVIEW AND PING BACK... |
Contributor
|
Fix CI @solidsole |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implemented a push-style status update mechanism to prevent clients from having to poll transaction states aggressively. Previously, clients had to manually query the transaction history to determine if a Soroban transaction had succeeded or failed.
Changes include:
POST /transactions/status/callbackallowing clients to register a webhook URL for a specific transaction hash.TransactionStatusServicewith a scheduled cron job that polls the Stellar RPC for pending transactions and detects transitions toSUCCESSorFAILEDstates.WebhookServiceso that clients can verify the authenticity of status updates via theX-Webhook-Signatureheader.FAILED_TO_NOTIFYand attempting redelivery in subsequent cycles.Type of Change
feat
fix
docs
refactor
test
chore
Validation
Lint passed for affected area(s) (Verified via
npm run build)Tests passed for affected area(s) (Verified via
npm test)Manual verification completed (Logical flow verified: Registration$\rightarrow$ Polling $\rightarrow$ Signing $\rightarrow$ Notification)
Documentation
Documentation updated (Added Swagger tags
@ApiTags('Transaction Status')to the new controller for automatic API doc generation)Screenshots/videos attached for UI changes (N/A - Backend change)
Checklist
Branch name uses
feat/,fix/, ordocs/(Suggested:feat/transaction-status-callbacks)Commit messages follow Conventional Commits
PR scope matches linked issue acceptance criteria
CLOSE #856