Skip to main content

Accessing Data

Data access on Sui is the process of reading onchain state, including transactions, checkpoints, objects, and events. Sui provides multiple interfaces for accessing this data, each optimized for different use cases.

Which data access method should I choose?​

MethodBest forLatencyHistorical depth
GraphQL RPCFlexible queries, app backends, explorersLowCurrent state and recent history
gRPCHigh-throughput streaming, real-time pipelinesLowestCurrent state and recent history
Custom indexingApplication-specific data models, analyticsVariesFull history (you control retention)
Archival StoreHistorical lookups for data that full nodes no longer retain after pruningHigherComplete history from genesis

Use these rules to pick a method:

If you needUse
A starting point for most applicationsGraphQL RPC
Real-time streaming or higher throughputgRPC
A custom data model or application-specific indexesA custom indexing pipeline
Historical data beyond what full nodes retainArchival Store

You can also subscribe to onchain activity through events, which Move modules emit during transaction execution. Authenticated events provide cryptographic proof of event origin for cross-system verification.

For a list of hosted RPC providers, see RPC Providers.