docs/content/guides/developer/accessing-data/archival-store.mdx
The Archival Service provides access to historical Sui network data through the same LedgerService gRPC API available on full nodes. Use it as a fallback when your full node has pruned the data you need, or as a dedicated source for historical queries.
For core concepts, see the Archival Store and Service concepts page.
The Sui Foundation operates an Archival Service as a public good:
archive.testnet.sui.ioarchive.mainnet.sui.ioThese endpoints have strict rate limits.
The Archival Service exposes the same LedgerService gRPC API as a Sui full node. Query it using any gRPC client by pointing at an Archival Service endpoint instead of a full node.
See Using gRPC for detailed examples with grpcurl, Buf CLI, TypeScript, Go, and Python.
For example, to fetch a historical transaction using grpcurl:
grpcurl -d '{
"digest": "BASE58_TX_DIGEST"
}' archive.testnet.sui.io:443 sui.rpc.v2.LedgerService/GetTransaction
Apps can query the Archival Service when a full node returns retention-related errors. This provides a graceful fallback without requiring the full node to store historical data:
NOT_FOUND for data that should exist, retry against the Archival Service endpoint.For production use or to avoid rate limits, you can run the full archival stack yourself. See the Archival Stack Setup operator guide for instructions on setting up Bigtable, the indexer, and the gRPC service.