πŸ”₯ Hosted Subgraph

In addition to Sentio processor, Sentio is also compatible with Subgraph. While Sentio still provides the same GraphQL API endpoint, we also provide SQL API, dashboards, multi-versioning, etc., many of the benefits that Sentio processor has provided. However, in order to get maximum performance and usability, we still highly recommend using Sentio Processor.

To create a Subgraph, first create a project and choose Subgraph as project type.

Then upload your graph to this project with:

npx @sentio/cli graph deploy --owner $PROJECT_OWNER --name $PROJECT_NAME

Once it gets uploaded, use the data-source page to view progress. And use data studio to access either GraphQL or SQL.

Recommended subgraph version is:

@graphprotocol/graph-cli: 0.68.5
@graphprotocol/graph-ts: 0.32.0

Hot Swap

If you want to hot swap a running processor version without re-indexing old data, run:

npx @sentio/cli graph deploy --owner $PROJECT_OWNER --name $PROJECT_NAME --continue-from=<old version>

Network Supported

All the EVM networks listed here are supported.
For the network field, we recommend using chain id instead of network slug which could be ambiguous, e.g.

network: '1'

We also support using your own customized chain or forked network, just bring your own archive node RPC.

Docs and API

When uploading the subgraph, the API endpoint will be printed in the console. You can also find docs and API in the data studio page for GraphQL.

Limitation

Currently Sentio Subgraph doesn't have trace handler.