Use the Sui Full Node gRPC API for typed access to checkpoints, transactions, objects and balances. The public endpoint is useful for initial testing; add an API key for authenticated application traffic.
grpcurl -v \
-d '{
"sequence_number": "299599072",
"read_mask": {
"paths": ["transactions"]
}
}' \
sui-testnet.api.onfinality.io:443 \
sui.rpc.v2.LedgerService/GetCheckpointgrpcurl -v \
-H "api-key: YOUR_API_KEY" \
-d '{
"sequence_number": "299599072",
"read_mask": {
"paths": ["transactions"]
}
}' \
sui-testnet.api.onfinality.io:443 \
sui.rpc.v2.LedgerService/GetCheckpointgrpcurl sui-testnet.api.onfinality.io:443 sui.rpc.v2.LedgerService/GetServiceInfoSui has deprecated Full Node JSON-RPC in favour of gRPC and GraphQL. Use gRPC for new integrations and migrate existing JSON-RPC applications as part of your upgrade path.
Sui gRPC exposes typed services for reading ledger state, querying objects and Move packages, executing transactions, and consuming live blockchain data from a Sui Full Node.
GetServiceInfo
GetObject
BatchGetObjects
GetTransaction
BatchGetTransactions
GetCheckpoint
GetEpoch
ListCheckpoints
ListTransactions
ListEventsListDynamicFields
ListOwnedObjects
GetCoinInfo
GetBalance
ListBalancesSubscribeCheckpoints
SubscribeTransactions
SubscribeEventsExecuteTransaction
SimulateTransactionGetPackage
GetDatatype
GetFunction
ListPackageVersionsLookupName
ReverseLookupNameVerifySignatureUse SubscriptionService streams to receive checkpoints, transactions, and events as they are produced. Streaming avoids repeatedly polling HTTP endpoints for applications that need live Sui activity.
SubscribeCheckpoints
SubscribeTransactions
SubscribeEventsThese typed streams provide the gRPC equivalents of the legacysui_subscribeEvent and sui_subscribeTransactionworkflows.
Field masks let clients request only the response fields they need. This keeps responses focused and helps applications control payload size when querying detailed checkpoints, transactions, and objects.
{
"sequence_number": "299599072",
"read_mask": {
"paths": ["transactions"]
}
}Existing applications can continue using Sui JSON-RPC while they migrate. The legacy endpoint remains useful for compatibility, but new Sui integrations should prefer gRPC or GraphQL as the network moves away from Full Node JSON-RPC.
curl -H 'Content-Type: application/json' \
-d '{
"jsonrpc":"2.0",
"id":1,
"method":"sui_getTotalTransactionBlocks"
}' \
'https://sui-testnet.api.onfinality.io/public'Replace legacy method calls with typed gRPC service methods as you update clients, indexers, wallets, and backend services.
| Sui JSON-RPC | Sui gRPC |
|---|---|
sui_getObject | LedgerService.GetObject |
sui_getTransactionBlock | LedgerService.GetTransaction |
suix_queryTransactionBlocks | LedgerService.ListTransactions |
suix_queryEvents | LedgerService.ListEvents |
sui_subscribeEvent | SubscriptionService.SubscribeEvents |
sui_subscribeTransaction | SubscriptionService.SubscribeTransactions |
sui_executeTransactionBlock | TransactionExecutionService.ExecuteTransaction |
sui_dryRunTransactionBlock | TransactionExecutionService.SimulateTransaction |
Query balances, objects, transactions, and live activity for Sui wallets, custody systems, and exchange workflows.
Combine ledger queries, field masks, and subscriptions to build Sui datasets, explorers, search, and analytics pipelines.
Read object and balance state, simulate transactions, execute signed transactions, and stream protocol activity for DeFi products.
Use Sui's object-centric model and real-time streams for game assets, social features, digital collectibles, and consumer experiences.
Use typed gRPC responses and streaming services to feed operational systems, monitoring, reporting, and data products without running a full node.
| Environment | Mainnet | Testnet |
|---|---|---|
| Network | Sui Mainnet | Sui Testnet |
| gRPC | Supported | Supported |
| JSON-RPC | Legacy | Legacy |
| Environment | Production | Development / QA |
| Best for | Live applications | Testing and staging |
OnFinality takes away the heavy lifting of DevOps so you can build smarter and faster.
Get Started