#077: Backend Contract Event Indexer
Category: [BACKEND]
Difficulty: ● HARD
Tags: soroban, event-indexing, horizon, ledger, postgres
Description
Implement a background service in the Express backend that streams Soroban contract events from the Stellar RPC and persists them to PostgreSQL. Index events from bulk_payment, vesting_escrow, and revenue_split contracts so the frontend can query a reliable, queryable audit trail without hitting the RPC on every page load.
Acceptance Criteria
#077: Backend Contract Event Indexer
Category: [BACKEND]
Difficulty: ● HARD
Tags:
soroban,event-indexing,horizon,ledger,postgresDescription
Implement a background service in the Express backend that streams Soroban contract events from the Stellar RPC and persists them to PostgreSQL. Index events from
bulk_payment,vesting_escrow, andrevenue_splitcontracts so the frontend can query a reliable, queryable audit trail without hitting the RPC on every page load.Acceptance Criteria
contract_eventstable with contract_id, event_type, payload, and ledger sequence.GET /api/events/:contractIdreturns paginated events.