> For the complete documentation index, see [llms.txt](https://docs.blockpi.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.blockpi.io/build/api-reference/sui.md).

# SUI

BlockPI now supports full-stack data services for SUI, including full nodes, archival services, and GraphQL services. For details on their respective applicable use cases, please refer to the official [documentation](https://docs.sui.io/guides/developer/accessing-data/).&#x20;

<table><thead><tr><th width="142">Stack</th><th width="336">API Endpoint Format</th><th width="151">Data Range</th><th>Supported Region</th></tr></thead><tbody><tr><td>Mainnet Full node</td><td>JSON-RPC: <br>https://sui.blockpi.network/v1/rpc/&#x3C;key>,<br><br>gRPC: <br>sui.blockpi.network, {token}</td><td>Pruned</td><td>EU, APAC</td></tr><tr><td>Mainnet Archive Service</td><td>gRPC: <br>sui-archive.blockpi.network, {token}</td><td>Archive</td><td>EU, APAC</td></tr><tr><td>Mainnet GraphQL</td><td>GraphQL: <br>https://sui.blockpi.network/v1/graphql/&#x3C;key> </td><td>Latest 90 days</td><td>EU, APAC</td></tr><tr><td>Testnet Full node</td><td>JSON-RPC: <br>https://sui-testnet.blockpi.network/v1/rpc/&#x3C;key>,<br><br>gRPC: <br>sui-testnet.blockpi.network, {token}</td><td>Pruned</td><td>EU, APAC</td></tr></tbody></table>

Since the archival data is within an individual service, users need to create a separate network endpoint with the name “**SUI Mainnet Archive**”. While the endpoints for the full node (gRPC or deprecated JSON-RPC) and the GraphQL are within "**SUI Mainnet**". Check out the above table and the figure below.&#x20;

<figure><img src="/files/dKALJzMdgY0V198VdDaf" alt=""><figcaption></figcaption></figure>

Please note that JSON-RPC APIs are only for pruned data and can only be used with a full node endpoint. Users requiring archival data should create a SUI Mainnet Archive endpoint and use gRPC.

{% hint style="info" %}
SUI has announced plans to deprecate the JSON-RPC API. Please refer to the official SUI announcement for the specific timeline. As an official partner, BlockPI will align with SUI’s plan to phase out JSON-RPC support.
{% endhint %}

{% hint style="info" %}
Please see the example in [Best Practices](/basic-tutorials/best-practices.md)to use gRPC in SUI SDK
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.blockpi.io/build/api-reference/sui.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
