Builders can query Sui data and keep receiving matching checkpoints, transactions, and events through the same GraphQL interface.

Main Takeaways

  • GraphQL on Sui now delivers checkpoints, transactions, and events as they happen, with filtering aligned to what's already available for queries.
  • A subscription can start from a cursor in the past, backfill to the present, and continue into live delivery. Clients that disconnect reconnect and backfill from where they left off.
  • Sui provides real-time data through both gRPC and GraphQL. Builders pick the interface that fits their stack.

Agents and applications do more than look up blockchain data. They react as transactions happen: a wallet shows a payment, a trading application updates a position, a monitoring service flags unusual activity.

Until now, developers using GraphQL on Sui could query that data but had to keep asking whether it had changed. With GraphQL Subscriptions, an application describes the activity it cares about and receives matching updates as they occur.

Developers can subscribe to checkpoints, transactions, and events. Transaction and event subscriptions use filtering aligned with GraphQL queries, so an application can find historical data and follow new activity through one interface. The fields available through the Query schema are available in subscriptions as well, with limited exceptions.

Query, catch up, stay current

Suppose an application needs to follow events from a particular package. It queries the events it needs, then keeps receiving matching events as new ones occur.

A subscription does not have to start from now. It can start from a cursor in the past, replay matching transactions or events to the present, and continue into live delivery as one continuous, ordered stream. If a client disconnects, it reconnects with its last-seen cursor and the subscription backfills what it missed before resuming live. The service recovers its own gaps too: if its upstream checkpoint connection is interrupted, it recovers the missed checkpoints so subscribers see a contiguous feed.

That continuity applies across wallets, explorers, trading applications, analytics tools, monitoring systems, automation services, and AI agents, anything that reacts to onchain activity without polling for it.

‍

GraphQL Subscriptions and gRPC subscriptions

Sui already provides real-time subscriptions through gRPC. Both interfaces now deliver filtered, live streams of Sui activity, and are built to serve different needs.

gRPC is Sui's lower-level, strongly typed interface. It's the natural choice for high-performance backends, exchanges, infrastructure, and large indexing systems. GraphQL Subscriptions expose that same activity through GraphQL, so developers can select the fields and related data their application needs using the types and filters they already use for queries.

Lighter-weight custom indexing

GraphQL Subscriptions give teams working in TypeScript, Python, and other widely used programming languages a simpler path to application-specific indexing. A developer can subscribe to the transactions or events relevant to their application and write those results into their own database or pipeline. A team tracking activity from its own contracts now doesn't necessarily need to adopt the Rust-based custom indexing framework to keep a live view of that data.

This doesn't replace the custom indexing framework though. That framework remains the right option for purpose-built pipelines with their own storage and processing logic, and more sophisticated indexing workloads still benefit from it.

How the pieces fit

GraphQL Subscriptions aren't a parallel data stack. For live data, the GraphQL service consumes Sui's gRPC checkpoint stream. For historical catch-up and data resolution, it uses the gRPC Ledger Service, which can point at an archival instance when full history is required.

Sui → gRPC + Archival → GraphQL → application

GraphQL Subscriptions are available on both Testnet and Mainnet. Explore the GraphQL Subscriptions documentation to get started.

‍

Author

Sui Foundation

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

Read more like this

Guest Post: The Strong Legal Case That Hashi Transactions Are Not Taxable Events

A note prepared by Fenwick law firm on the tax treatment of Hashi BTC transactions

4min read
Sui Foundation

Sui Foundation Holds First Demo Day in Hong Kong

Our first Demo Day lets builders present their apps to a panel of judges and the Builder House audience.

1min read
Sui Foundation

Sui in Seoul: A Week of Innovation and Connection at KBW 2025

Sui lit up Korea Blockchain Week 2025, ending on a high note with Sui Builder House:APAC.

4min read
Sui Foundation

Getting Started on Sui: What is Sui?

The first in a new series exploring Sui, for anyone who owns crypto and wonders what comes next

4min read
Sui Foundation

Introducing the Decentralized Seal Key Server, Now live on Testnet

Seal's encryption layer now supports distributed key management across independent operators, with no changes to how you build

4min read
Sam Blackshear

Introducing Sui Spheres

Sui Spheres are controlled execution environments for multi-party workflows, with selective visibility, flexible performance, and the ability to connect to the...

4min read
Sui Foundation