Choose Subgraphs when
- You need entities and relationships defined by a Subgraph schema.
- A Subgraph for your contracts already exists, or your team can publish one with Graph CLI.
- You want an Endpoint Alias that keeps your application URL unchanged across deployment changes.
Use another service when
-
You need direct contract reads at an explicit block, or you submit transactions.
RPC -
You need block-by-block history in your own database. Subgraphs serve the current indexed view.
Substreams