ScopeBots

ScopeBots is no longer updated. Listings were last checked in November 2026, so confirm prices and terms on each maker's own site.

All tools / Guides

Sui SDK 3.0 removed JSON-RPC: what to use now

@mysten/sui 3.0 throws on SuiJsonRpcClient. How to move to SuiGrpcClient or GraphQL, replace @mysten/dapp-kit, and find a Sui gRPC provider.

Updated Nov 25, 2026

Documentation-based guide: code examples are from the makers' docs and weren't run by us. Checked against each maker's own pages on Nov 24, 2026.

`@mysten/sui` 3.0, published on npm on November 19, 2026, removes the JSON-RPC transport: `SuiJsonRpcClient` now throws when you construct it, and so does `getJsonRpcFullnodeUrl`. The fix is to switch to `SuiGrpcClient` (Mysten's recommended default) or `SuiGraphQLClient`, replace the legacy `@mysten/dapp-kit` with `@mysten/dapp-kit-react` before you upgrade, and point your app at a provider that serves Sui gRPC. This guide walks through each step and lists the providers whose own docs confirm Sui gRPC.

Contents

Quick answer

What you useWhat to do for 3.0
Sui TypeScript SDK with `SuiJsonRpcClient`Switch to `SuiGrpcClient` (or `SuiGraphQLClient`); method names mostly map one to one
Sui dApp Kit, legacy `@mysten/dapp-kit`Can't run on 3.0. Migrate to `@mysten/dapp-kit-react` first
EnokiUpgrade to `@mysten/enoki` 2.x, which requires `@mysten/sui` ^3.0.1
A hosted RPC endpointMake sure it serves Sui gRPC (and GraphQL if you need it); see the provider table

Our Sui infrastructure page and Sui smart contracts & SDKs page list these tools with the source for each one's Sui support.

What breaks when you upgrade to @mysten/sui 3.0?

npm shows `@mysten/sui` 3.0.0 and 3.0.1 both published on Nov 19, 2026, the same day as `@mysten/dapp-kit-react` 3.0 and `@mysten/enoki` 2.0 Source: npm @mysten/sui. Mysten's migration guide lists the breaking changes Source: Mysten, Migrate to 3.0:

This is the SDK catching up with the network. Sui's docs say JSON-RPC was disabled on Sui Foundation mainnet full nodes the week of July 27, 2026, with full removal from full nodes targeted for mid-October 2026 Source: Sui docs, JSON-RPC migration guide.

How do I replace SuiJsonRpcClient?

For most app code it's a constructor swap. From Mysten's guide Source: Mysten, Migrating from JSON-RPC:

Note the option changes from `url` to `baseUrl`. Then rename the methods you call. The common ones:

JSON-RPC client method3.0 replacement
`multiGetObjects``getObjects`
`getOwnedObjects``listOwnedObjects`
`getCoins``listCoins`
`getDynamicFields``listDynamicFields`
`getTransactionBlock``getTransaction`
`executeTransactionBlock``executeTransaction`
`dryRunTransactionBlock``simulateTransaction`
`devInspectTransactionBlock``simulateTransaction` with the sender set and `checksEnabled: false`
`queryTransactionBlocks` / `queryEvents``listTransactions` / `listEvents`

`getObject`, `getBalance`, `getCoinMetadata` and `waitForTransaction` keep their names. If you publish a library, accept `ClientWithCoreApi` from `@mysten/sui/client` and call `client.core.<method>()`, so callers can pass either the gRPC or the GraphQL client.

The Sui Foundation's public endpoints are rate-limited and "not for production workloads", so keep `fullnode.mainnet.sui.io` for development only Source: Sui docs, RPC and Data Providers.

gRPC or GraphQL: which client should I use?

Mysten calls `SuiGrpcClient` "the recommended default for application code", and its default transport (gRPC-web over Fetch) works in browsers and Node.js Source: Mysten, SuiGrpcClient. Sui's docs split it this way Source: Sui docs, JSON-RPC migration guide:

Many teams use both. Check which one your provider serves: several offer GraphQL on mainnet only.

Wallet apps: moving from dapp-kit to dapp-kit-react

The legacy `@mysten/dapp-kit` (last release 1.1.17) is marked deprecated on npm: "This package only supports the deprecated Sui JSON-RPC API and will not receive further updates" Source: npm @mysten/dapp-kit. Mysten's 3.0 guide says it "can't run on 3.0 or keep a 2.x copy of its own", so migrate before you bump the SDK.

The replacement is a rewrite: `@mysten/dapp-kit-core` (framework-agnostic, with Web Components) plus `@mysten/dapp-kit-react`, with no React Query dependency. You create an instance with `createDAppKit` and give it a `createClient` function that returns a `SuiGrpcClient` per network Source: Mysten, dapp-kit migration:

Hooks change shape too (promise-based instead of mutation hooks), so budget time for the UI code, not just the imports. If you use Enoki for zkLogin or sponsored transactions, `@mysten/enoki` 2.0.1 lists `@mysten/sui` ^3.0.1 as a peer dependency Source: npm @mysten/enoki, so upgrade it together with the SDK.

Which Sui RPC providers serve gRPC?

Sui's docs keep a provider table Source: Sui docs, RPC and Data Providers. We checked the listed providers on their own pages; these confirm Sui gRPC there:

ProvidergRPCGraphQLHistoryEntry price
InodraYesYesBack to genesis on every planFree: 1M credits/month, 10 req/s, no card
Triton OneYesMainnetArchival gRPC endpointPay as you go, $50 minimum deposit
QuickNodeMainnet and testnetMainnet onlyBeyond 14 epochs via gRPC on mainnetSee listing
BlockPIYesMainnetArchive Service gRPC endpointSee listing
ChainstackYesYesSee docsSee listing
GetBlockMainnetNot offered on its Sui pageNot statedSee listing
dRPCMainnet, paid plans onlyNot listed on its Sui pageNo archive on its Sui pagePay as You Go $6 per 1M requests; Pro $49/month

Sources: Inodra gRPC gateway and pricing; Triton One endpoints and pricing; QuickNode Sui API overview; BlockPI Sui; Chainstack Sui tooling; GetBlock Sui API; dRPC Sui API, Sui endpoint and plans.

Trade-offs worth knowing:

For a side-by-side of the two Sui-focused options, see Inodra vs Triton One.

What if a dependency still needs 2.x?

You can upgrade before your dependencies do. Per Mysten's guide, a package with a regular dependency on 2.x installs its own copy and keeps working; one with a peer dependency on `^2` is refused by npm (pnpm and Yarn warn and hand it your 3.0 copy). Run `npm ls @mysten/sui` to see what you have. An `overrides` entry forces every package onto 3.0, but a package that still calls JSON-RPC will then throw, so only override once it ships a 3.0 release Source: Mysten, Migrate to 3.0.

Migration checklist