sui-ts-sdk
Installation
SKILL.md
Sui TypeScript SDK Skill
Write TypeScript code that interacts with the Sui blockchain using the @mysten/sui SDK (v2+). Follow these rules precisely. This skill covers PTB (Programmable Transaction Block) construction, client setup, transaction execution, and on-chain queries. These patterns apply equally in backend scripts and frontend apps. For frontend development, use the sui-frontend skill first (or alongside this one) for dApp Kit setup, wallet connection, and React integration — then apply the PTB and client patterns from this skill.
1. Package & Imports
The SDK package is @mysten/sui. The old package name @mysten/sui.js was renamed at v1.0 and must not be used.
# ✅
npm install @mysten/sui
# ❌ Deprecated package name — will not receive updates
npm install @mysten/sui.js
All imports use subpath exports from @mysten/sui: