Update: GraphQL RPC and General-purpose Indexer are now generally available on Sui.

Sui now supports GraphQL RPC and a General-purpose Indexer in public beta, unlocking powerful new capabilities for structured onchain data access. This release is a major step in our broader mission to evolve the Sui data stack, giving developers, indexer operators, and data providers more scalable and expressive tools to interact with blockchain data.

Unlike traditional JSON-RPC, which was designed for low-level Full-node-based interactions, GraphQL offers a high-level query language built for developer productivity. Paired with a modular, checkpoint-driven General-purpose Indexer, it makes querying and building with Sui data dramatically simpler.

A smarter layered data stack

Sui is rethinking how developers access blockchain data through a layered approach. 

At the foundation are gRPC APIs, which offer fast, polling-based, and real-time streaming capabilities for latency-sensitive apps and services. On top of this sits GraphQL RPC with General-purpose Indexer, providing structured, filterable, and composable access to historical and live onchain data, making it a natural fit for wallets, explorers, and structured data applications. Developers can also extend the stack with Custom Indexers, enabling purpose-built pipelines for app-specific or protocol-specific logic.

The GraphQL and General-purpose Indexer stack introduces the second pillar in this model, designed for rich data queries across wallets, dashboards, explorers, and apps. To learn more about which data access method suits your use case, visit the Data Serving Guide.

What GraphQL RPC brings

Unlike traditional JSON-RPC, which was built for low-level Full-node interactions, GraphQL RPC offers a high-level query language that boosts developer productivity. With this release, builders gain clear advantages: 

  • Declarative queries: Fetch only the fields and entities you need
  • Joins and relationships: Retrieve transactions and related objects in one call
  • Powerful filtering: Use cursor-based pagination, type filters, and checkpoints
  • Consistency across queries: Read from a consistent checkpoint across multiple queries, which improves correctness and simplifies stateful applications
  • Human-readable schema: Easily explore data with tools like GraphiQL

The beta release includes:

  • A GraphQL RPC server exposing a typed schema over objects, transactions, events, and more
  • A General-purpose Indexer that processes Sui checkpoints into a Postgres-compatible database
  • Connectivity to an Archival Service for historical lookups of transactions, objects, and more
  • Integration with a Full node to access the tip of the network and support transaction execution

Together, these features help reduce the need for many custom indexers, making it easy to build with Sui data.

Note that if you were already using GraphQL alpha on Mainnet or Testnet, you must migrate your app to use the new beta version (Mainnet, Testnet) as soon as possible. The Sui Foundation provided endpoints for the alpha version, which will be decommissioned soon.

How builders are already using it

Early adopters are already prototyping with GraphQL RPC in a variety of ways. Wallets are displaying coins, NFTs, and transaction history more efficiently. Dashboards are surfacing paginated address activity. Explorers are going beyond transaction digests to reveal relationships between entities. APIs are servicing structured data without having to build dedicated pipelines.

As an open API layer, GraphQL RPC serves both application teams and RPC providers who want to offer rich data services.

A scalable, flexible stack

The GraphQL and General-purpose Indexer stack is designed to be modular and robust:

  • Supports Postgres-compatible databases (e.g., GCP AlloyDB, AWS Aurora Postgres, locally deployed Postgres etc.)
  • Integrates with a pluggable Archival Service for historical state
  • Configurable Indexer pipelines for transactions, objects, events, and more
  • Available in fully managed, partially self-managed, or fully self-hosted deployment modes

What’s next

This beta release is just the beginning. Upcoming work includes:

  • Proper SDK support (GraphQL-native clients already work)
  • Performance and cost benchmarking tooling
  • GraphQL subscriptions for real-time updates
  • Additional improvements for general availability

Build your own indexer for more control

Teams that need tailored data views or optimizations to the data layout can turn to the updated Custom Indexer Framework. This framework powers the General-purpose Indexer and makes it possible to create application- or protocol-specific state mirrors, optimize for performance and storage efficiency, and fully customize the schema, logic, and data stores.

Get started

Developers can dive in today by exploring the GraphQL RPC and General-purpose Indexer docs, reviewing the API reference, and testing queries with GraphQL or introspection tools. Feedback is welcome through GitHub as the stack moves toward general availability.

Whether you're a wallet developer, infrastructure provider, or indexing protocol, GraphQL RPC is ready for you to build.

Author

Sui Foundation

High-performance blockchain delivering the full stack for a new global economy.

Read more like this

How to Create a Token: ERC-20 Standard Versus Sui Coin

Creating tokens on Sui involves some fundamental differences compared to using the ERC-20 standard on Ethereum.

5min read
Sam Blackshear

Daya Partners With Sui To Enable Gasless, Stablecoin-Powered Payments Across Africa

Daya has integrated Sui as settlement infra, giving African businesses gasless stablecoin transfers

3min read
Sui Foundation

Phantom Wallet Integrating Sui

Phantom's support brings Sui onto a multichain wallet boasting the largest number of users in the industry.

1min read
Sui Foundation

Turbos Finance DEX Offers Efficient Smart Routing

Decentralized exchange Turbos Finance offers swaps, liquidity pools with smart routing, and gamified DeFi on Sui.

3min read
Sui Foundation

Tencent Blockchain RPC Service Now Supports Sui

Sui developers will find a variety of plans supporting apps of all sizes.

1min read
Sui Foundation

DeepBook to Serve as a Foundational Liquidity Layer on Sui

DeepBook, a decentralized limit order book developed by MovEX for Sui, will allow builders to easily create DeFi apps.

1min read
Sui Foundation