Summary
The event indexer currently polls Stellar Horizon on a timer. Supporting push webhooks from Horizon (or a relay service) would reduce polling overhead and give near-real-time event processing.
Proposed Endpoint
POST /api/webhooks/horizon
- Verifies HMAC signature of incoming payload
- Parses event and dispatches to the existing event-indexer service
- Returns
200 immediately, processes async
Acceptance Criteria
Files
server/src/routes/
server/src/services/event-indexer.service.ts
Summary
The event indexer currently polls Stellar Horizon on a timer. Supporting push webhooks from Horizon (or a relay service) would reduce polling overhead and give near-real-time event processing.
Proposed Endpoint
POST /api/webhooks/horizon200immediately, processes asyncAcceptance Criteria
401event-indexer.service.tsWEBHOOK_SECRETadded toserver/.env.exampleFiles
server/src/routes/server/src/services/event-indexer.service.ts