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 breaks when you upgrade to @mysten/sui 3.0?
- How do I replace SuiJsonRpcClient?
- gRPC or GraphQL: which client should I use?
- Wallet apps: moving from dapp-kit to dapp-kit-react
- Which Sui RPC providers serve gRPC?
- What if a dependency still needs 2.x?
- Migration checklist
Quick answer
| What you use | What 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 |
| Enoki | Upgrade to `@mysten/enoki` 2.x, which requires `@mysten/sui` ^3.0.1 |
| A hosted RPC endpoint | Make 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:
- JSON-RPC is gone. Code that imports `@mysten/sui/jsonRpc` still loads, but `SuiJsonRpcClient`, `JsonRpcHTTPTransport` and the JSON-RPC error classes throw when constructed, and `getJsonRpcFullnodeUrl` throws too.
- Untyped pure values are rejected. The gRPC and GraphQL clients won't accept raw Move call arguments that JSON-RPC used to resolve from the function signature. Pass typed values such as `tx.pure.u64(...)`.
- Signature verification needs a client or `offline: true`. `verifyPersonalMessageSignature` and its siblings now verify on the node when you pass a client; with `offline: true`, zkLogin signatures throw.
- Renamed fields and errors. BCS effects tuples become named-field structs, multisig fields go camelCase, and execution error names now match gRPC (for example `InvalidBcsBytes` instead of `InvalidBCSBytes`). If you match on error strings, update them.
- Transports. gRPC-web defaults to the binary format (pass `format: 'text'` if your proxy only supports grpc-web-text), and client URLs are validated when the client is created.
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:
- Before (throws on 3.0): import `SuiJsonRpcClient` and `getJsonRpcFullnodeUrl` from `@mysten/sui/jsonRpc`, then `new SuiJsonRpcClient({ url: getJsonRpcFullnodeUrl('mainnet'), network: 'mainnet' })`.
- After: import `SuiGrpcClient` from `@mysten/sui/grpc`, then `new SuiGrpcClient({ baseUrl: 'https://fullnode.mainnet.sui.io:443', network: 'mainnet' })`.
Note the option changes from `url` to `baseUrl`. Then rename the methods you call. The common ones:
| JSON-RPC client method | 3.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:
- gRPC for backends, indexers, transaction submission, low-latency lookups and streaming. The old WebSocket `sui_subscribeEvent` and `sui_subscribeTransaction` map to `SubscriptionService` streams with server-side filters.
- GraphQL for frontends, scripts and queries that join several resources (an address with its objects, balances and recent transactions) or need results pinned to one checkpoint. GraphQL has no streaming subscription in that mapping, so you poll.
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:
- Remove the old package: `npm uninstall @mysten/dapp-kit`
- Install the new ones: `npm i @mysten/dapp-kit-react @mysten/dapp-kit-core @mysten/sui`
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:
| Provider | gRPC | GraphQL | History | Entry price |
|---|---|---|---|---|
| Inodra | Yes | Yes | Back to genesis on every plan | Free: 1M credits/month, 10 req/s, no card |
| Triton One | Yes | Mainnet | Archival gRPC endpoint | Pay as you go, $50 minimum deposit |
| QuickNode | Mainnet and testnet | Mainnet only | Beyond 14 epochs via gRPC on mainnet | See listing |
| BlockPI | Yes | Mainnet | Archive Service gRPC endpoint | See listing |
| Chainstack | Yes | Yes | See docs | See listing |
| GetBlock | Mainnet | Not offered on its Sui page | Not stated | See listing |
| dRPC | Mainnet, paid plans only | Not listed on its Sui page | No archive on its Sui page | Pay 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:
- Inodra is Sui-only. It still runs a JSON-RPC gateway for old clients, but that won't help once you're on SDK 3.0. Its pricing page says "a credit is one entity read", so a batch or a GraphQL query that returns many items costs more than one credit. The uptime SLA starts at the $499 Professional plan.
- Triton One prices gRPC at $10 per million calls plus $0.08/GB bandwidth, from a prepaid, non-refundable deposit (now $50 on its pricing page). It takes the token in the `x-token` header for gRPC, not in the URL.
- QuickNode says JSON-RPC is "Removed from Mainnet and Testnet" on its Sui endpoints and that archive queries route automatically on the same endpoint.
- dRPC's Sui docs cover the native gRPC API (sui.rpc.v2) at one shared endpoint where you pick the chain with an `x-drpc-chain: sui` header; its chainlist marks the Sui endpoint as paid plans only, with no archive.
- Sui's table also names Ankr, ZAN, NodeInfra, 01.ro, Alchemy, Dwellir, Blockvision and Natsai. We haven't confirmed those on the providers' own pages yet, so they're not in the table. Ask your provider before you switch.
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
- Search your code for `@mysten/sui/jsonRpc`, `SuiJsonRpcClient` and `getJsonRpcFullnodeUrl`.
- Swap in `SuiGrpcClient` with `baseUrl`, then rename methods using the table above.
- Replace untyped pure arguments with `tx.pure.<type>()`.
- Wallet UI: move to `@mysten/dapp-kit-react` first, then upgrade `@mysten/sui` and `@mysten/enoki` together.
- Update any code that matches execution error names or reads BCS effect tuples.
- Confirm your RPC provider serves gRPC (and GraphQL, if you use it) on the network you deploy to, and move off the public endpoint for production.
- Run `npm ls @mysten/sui` and add an override only for packages that already support 3.0.