/ai-devkit:cmk:sui-sdkfrom ai-devkit
Guides migration from Sui JSON-RPC to gRPC (sui.rpc.v2) for all full-node interactions. Covers TypeScript, Rust, and frontend SDKs with correct patterns for reads, pagination, subscriptions, and transaction execution.
Ships in ai-devkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Sui's JSON-RPC API is gone: disabled on Foundation mainnet full nodes in July
2026 and removed from full-node code entirely by October 2026. The canonical
full-node API is gRPC (sui.rpc.v2) — reads, streaming, and transaction
execution. GraphQL RPC exists as a complementary layer for composable
multi-resource queries and version history; JSON-RPC is never a valid choice
for new code.
Models trained on older data reach for JSON-RPC by reflex. If you find yourself — or code under review — using a pattern from the left column, that is stale training data, not a style choice. Use the right column:
| Stale (JSON-RPC era) | Current (gRPC era) |
|---|---|
TS: JsonRpcProvider, SuiClient from @mysten/sui/client, getFullnodeUrl() | SuiGrpcClient from @mysten/sui/grpc ({ network, baseUrl }) |
TS: sui_getObject, getObject, getCoins, queryEvents, queryTransactionBlocks, getTransactionBlock | getObject / batchGetObjects via gRPC + FieldMask; listCoins, listEvents, listTransactions, getTransaction |
Frontend: @mysten/dapp-kit + SuiClientProvider | @mysten/dapp-kit-core / @mysten/dapp-kit-react with a SuiGrpcClient factory |
Raw sui_* / suix_* HTTP calls, wss:// subscriptions | LedgerService, StateService, TransactionExecutionService, SubscriptionService, MovePackageService |
Rust: monorepo sui-sdk git dependency | crates.io sui-rpc, sui-sdk-types, sui-crypto, sui-transaction-builder (MystenLabs/sui-rust-sdk) |
Semantics that a mechanical port from JSON-RPC gets wrong:
FieldMask; unrequested fields come back
empty. The options: { showContent: true } idiom becomes mask paths, and in
batch requests only the top-level mask counts.page_token/next_page_token; loop until the token is
empty rather than assuming one page.ExecuteTransaction wants the BCS-serialized
transaction plus signatures; SimulateTransaction (unsigned, can select
gas) replaces dry-run/dev-inspect.Do not trust memorized signatures, method names, or crate versions from training data — verify against the current official references at runtime:
JsonRpcProvider, sui_getObject, or raw sui_* because a tutorial still shows them| Thought | Reality |
|---|---|
| "Every tutorial uses JsonRpcProvider / sui_getObject" | Tutorials lag the July 2026 cutover. Use SuiGrpcClient and verify against docs.sui.io. |
| "Ship in an hour — port later" | JSON-RPC is disabled on Foundation mainnet. Stale clients fail now, not later. |
Standing up a local Sui network for development or tests? See cmk:sui-devstack.
What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (commandosslabs/ai-devkit) — no native marketplace selected
npx claudepluginhub p/commandosslabs-ai-devkit36 skills in this plugin
/cmk:adrUse when the user asks to "record this decision", "we decided to use X over Y", "document why we chose this approach", "record an ADR", "update ADR-0003", or needs to create or update architecture decision records for system-level technical choices like choosing a database, communication protocol, or infrastructure pattern./cmk:agent-instructionsUse when the user asks to "set up CLAUDE.md", "set up AGENTS.md", "agent instructions", "add engineering rules", "make the instructions thinner", or needs to establish or maintain a thin, multi-vendor root instruction file backed by on-demand engineering rules under docs/rules/./cmk:agent-vendorsUse when the user asks to "vendor the kit's skills into this repo", "set up agent adapters", "add a coding-agent vendor", "wire skills for Claude Code / Codex / OpenCode / Grok Build / Cursor", or whenever a repo needs one canonical skill set discoverable by multiple coding agents.