Skip to main content
Get started with a reliable Sui RPC endpoint to use the tools below. Your Chainstack Sui node serves gRPC, and Sui Mainnet Global Nodes also serve GraphQL on the same endpoint.
Sui removes JSON-RPC from the full node in v1.82. Sui Testnet nodes no longer serve JSON-RPC, and Sui Mainnet nodes stop serving it with the v1.82 upgrade — see Migrate Sui from JSON-RPC to gRPC and GraphQL.

Extended history

Sui Global Nodes are Extended. The node holds a window of checkpoints from lowestAvailableCheckpoint to the tip, not the full ledger from genesis. LedgerService/GetServiceInfo reports the current window — see Checkpoint retention for how the window applies to gRPC and GraphQL.

gRPC API

Sui nodes on Chainstack support gRPC for high-performance access. gRPC uses HTTP/2 and Protocol Buffers for binary serialization, which makes payloads smaller and adds server-side streaming — ideal for indexers, backends, and low-latency lookups. gRPC replaces JSON-RPC, which Sui removes from the full node in v1.82.

Endpoint and authentication

Your Sui gRPC endpoint is sui-mainnet.core.chainstack.com:443 (testnet: sui-testnet.core.chainstack.com:443), with TLS. Authenticate by passing your token in the x-token metadata header on every call. To find your endpoint and token on Chainstack, see View node access and credentials.

Explore with grpcurl

Sui gRPC has server reflection enabled, so grpcurl can list services and call methods without compiling proto files:
The node exposes six sui.rpc.v2 services:

gRPC from code

In TypeScript, use the official @mysten/sui SDK. Its default gRPC-Web transport works against Chainstack over HTTPS — including from the browser — so the simplest setup needs only your node URL as baseUrl. For server-side apps that prefer native gRPC over HTTP/2, pass a native transport instead. From other languages, generate typed stubs from Sui’s proto definitions and connect over native gRPC. Authenticate with your node’s x-token — carried in the endpoint URL, or as x-token metadata on native-gRPC calls — and use recent client versions — @mysten/sui 2.16+ and @grpc/grpc-js 1.14+ — since older releases produce intermittent gRPC errors under load.
The default gRPC-Web transport works in both the browser and server runtimes, so it is the simplest choice for most apps. The native gRPC transport (HTTP/2) is server-side only — use it when you specifically need native gRPC.

GraphQL API

Sui Mainnet Global Nodes serve Sui’s GraphQL RPC at YOUR_CHAINSTACK_ENDPOINT/graphql, with the same auth token as your HTTPS endpoint. Use GraphQL for filtered, paginated reads — transactions by address, events by type, objects by owner and type — that have no gRPC equivalent. GraphQL is not available on Sui Testnet. In TypeScript, use SuiGraphQLClient from the official @mysten/sui SDK:
TypeScript
Filtered queries and events keep a shorter history window than point lookups. For authentication options, filters, history windows, and query limits, see Sui GraphQL endpoint.

Sui TypeScript SDK

The Sui TypeScript SDK is the official SDK for building Sui applications. Use its gRPC client, SuiGrpcClient, for reads and transactions, and SuiGraphQLClient for filtered queries — see GraphQL API.

Installation

The SDK’s JSON-RPC client, SuiJsonRpcClient from @mysten/sui/jsonRpc, stops working when JSON-RPC is removed. SuiGrpcClient covers the same reads and transactions through methods such as getObject, listOwnedObjects, getBalance, and signAndExecuteTransaction. See the SDK 2.0 migration guide.

Basic usage

Sui Rust SDK

The sui-rpc crate from Mysten Labs’ Sui Rust SDK is a gRPC client for Sui, published on crates.io.

Installation

Add to your Cargo.toml:

Basic usage

Python SDK (pysui)

pysui is a community-maintained Python SDK for Sui. pysui 1.x connects over gRPC and GraphQL, and its gRPC client is async. pysui reads its connection settings from a configuration folder, so the example creates one with a Chainstack profile on the first run and passes your x-token as a header on every call.

Installation

Basic usage

For a complete pysui program, see Sui: On-chain validator analytics with pysui.

Go SDK

The Sui Go SDK from BlockVision provides Go language bindings for Sui, including a gRPC client. The client dials without TLS by default, so pass TLS credentials for your Chainstack endpoint.

Installation

Basic usage

Last modified on October 20, 2026