Skip to main content

GraphQL

GraphQL provides a flexible way to query the Sui network. GraphQL RPC is an alternative to the gRPC API.

Which data sources does GraphQL RPC read from?​

The GraphQL RPC Service reads data from the General-purpose Indexer's Postgres-compatible database, Archival Store and Service, and a full node.

How does the General-purpose Indexer work?​

The General-purpose Indexer is a scalable implementation of the custom indexing framework. The framework ingests data using the remote checkpoint store and full node RPCs. You can configure it to load different types of Sui network data into Postgres tables in parallel, which improves data ingestion performance. You can also configure pruning for different tables to balance performance and cost.

Which GraphQL topic do I need?​

The following topics cover GraphQL RPC in more detail: