Skip to content

Subgraph-style JS/Postgres indexer example #116

Description

@truthixify

Extra labels: example, indexing
Tier: L (5-7 days) | Type: example

Context. Third-party indexer teams keep asking "what's your recommended ingest shape?" Ship a reference: TypeScript indexer that follows Soroban RPC events, writes to Postgres, exposes a GraphQL endpoint. Not production, just canonical shape.

Scope.

  • New dir stellar/examples/indexer/ (TypeScript, Fastify, pg, postgraphile).
  • Ingest all four contracts' events.
  • Reorg-safe: watermark + rollback on chain reorg.
  • README with docker compose up one-liner.

Acceptance.

  • Runs on futurenet in one command
  • Handles a synthetic reorg without corrupting state (test included)
  • Doc'd endpoints for name resolution + announcement lookup

Files. stellar/examples/indexer/ (new).

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programdripsFunded via Drips Networkexamplehelp wantedExtra attention is neededindexingstellarTouches Stellar / Soroban code

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions