Skip to content

admin: add ledger-range Horizon replay endpoint and docs#668

Open
pchieneye wants to merge 1 commit into
CredenceOrg:mainfrom
pchieneye:feat/event-ingestion-replay-endpoint
Open

admin: add ledger-range Horizon replay endpoint and docs#668
pchieneye wants to merge 1 commit into
CredenceOrg:mainfrom
pchieneye:feat/event-ingestion-replay-endpoint

Conversation

@pchieneye

Copy link
Copy Markdown
Contributor

Admin: add ledger-range Horizon replay endpoint

Body:

  • Adds new admin endpoint: POST /api/admin/events/replay-range (validated body: fromLedger, toLedger).
  • Implements ReplayService.replayLedgerRange(fromLedger, toLedger, ...) which:
    • Fetches Horizon operations per ledger using Stellar SDK forLedger.
    • Best-effort maps operations to existing replay handlers (bond_creation, withdrawal, attestation) and invokes them.
    • Captures handler failures to the failed-events queue and audit-logs the overall replay run (REPLAY_LEDGER_RANGE).
  • Registers handler usage with existing registerAllReplayHandlers behavior; no handler behavioral changes.
  • Documents the endpoint in admin-api.md.
  • Notes: replay is best-effort; unsupported ops are skipped; errors for individual ops are recorded for later inspection.

Closes: #567

@drips-wave

drips-wave Bot commented Jun 29, 2026

Copy link
Copy Markdown

@pchieneye 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.

Add a replay endpoint for the event ingestion pipeline

2 participants