Sui gRPC
The Sui gRPC API, with endpoints, authentication, available services, and grpcurl examples.
The Sui gRPC API is a fast, type-safe, and efficient interface for interacting with the Sui blockchain. It replaces the deprecated JSON-RPC protocol. gRPC uses Protocol Buffers for compact, high-performance data serialisation, and supports both standard request-response calls and real-time server-side streaming, no polling required.
When to use gRPC
gRPC is the best choice when you need:
High-performance, low-latency point lookups for transactions, objects, and checkpoints
Real-time streaming subscriptions (replaces deprecated WebSocket support)
Strongly typed clients generated from
.protodefinitions in TypeScript, Go, Rust, and other languagesScalable backend systems: indexers, exchanges, bots, and dashboards
For frontends, developer tooling, or flexible filtered historical queries, consider GraphQL as an alternative.
Endpoints
Free test (mainnet, rate-limited)
mainnet.sui.rpcpool.com:443
No authentication token is required
Shared infrastructure
<your-endpoint>.<network>.sui.rpcpool.com:443
Required via the X-Token header
Dedicated nodes (private endpoint, provisioned exclusively for you)
<your-endpoint>.sui.rpcpool.com:443
Required via the X-Token header
<network> is mainnet or testnet. Copy your exact hostname and token from the customer dashboard.
Authentication
All non-free endpoints require the X-Token header to be included with every request. You can find your token in the customer dashboard.
When using grpcurl:
When using a generated gRPC client (e.g. in Go or TypeScript), add the token as a metadata field on every call:
Available services
The Sui gRPC API is defined via .proto files available in the sui-apis repository on GitHub. The following services are available:
TransactionExecutionService
Execute signed transactions, or simulate a transaction before you submit it
LedgerService
Look up checkpoints, transactions, objects, and epochs from the node's recent history
StateService
Query live onchain data: balances, coin info, owned objects, and dynamic fields
SubscriptionService
Stream checkpoints, transactions, and events in real time
MovePackageService
Access deployed Move package metadata and content
SignatureVerificationService
Validate signatures (including zkLogin) outside of transaction execution
NameService
Resolve SuiNS names to addresses and perform reverse lookups
Use these .proto definitions to generate type-safe client libraries in your language of choice.
Quickstart: grpcurl examples
grpcurl is the easiest way to explore the API from the command line.
List available services
List methods in LedgerService
Get the latest checkpoint
GetCheckpoint returns the latest checkpoint when the request names no sequence number or digest.
Get a transaction (events and effects)
Subscribe to live checkpoints (streaming)
Key concepts
Field masks
Use read_mask to request only the fields you need, reducing response size and latency:
Pass "*" to request all fields. If you omit read_mask, each method returns only a small default set of fields: for example, just digest from GetTransaction, sequence_number and digest from GetCheckpoint, and object_id, version, and digest from GetObject. In batch requests, only the top-level read_mask is respected.
Pagination
List APIs (owned objects, balances, etc.) return paginated results. Use page_size to control batch size and pass the returned next_page_token into the next request to continue. An empty next_page_token means you have reached the end. Keep all other request parameters constant between pages.
Encodings
AddressandObjectId: 64-character hex with a0xprefixDigest: Base58 encodedTypeTag/StructTag: Canonical string format
Errors
Errors follow the gRPC richer error model. Detailed error information is provided in the grpc-status-details-bin header as a Base64-encoded google.rpc.Status message.
Resources
The grpcurl tool
Contact support by clicking the chat icon in your customer dashboard Sales questions? Contact us AI agent? Read llms.txt Follow updates: Blog · X · YouTube · Telegram · GitHub
Last updated