sui-kiosk-sdk-js
Installation
SKILL.md
Sui Kiosk TypeScript SDK
Use this skill for JavaScript and TypeScript projects that interact with Sui Kiosk through @mysten/kiosk.
Primary source: Mysten Labs Kiosk SDK docs at https://sdk.mystenlabs.com/kiosk#about.
Current Defaults
- Install
@mysten/kioskalongside@mysten/sui. - Use the current client-extension and builder-pattern API.
- The Mysten SDK packages are ESM-only. Ensure
package.jsonhas"type": "module"and TypeScript usesmoduleResolutioncompatible with ESM, such asNodeNext,Node16, orBundler. - The Kiosk extension requires
SuiJsonRpcClientorSuiGraphQLClient. Do not useSuiGrpcClientfor Kiosk SDK work because Kiosk uses event queries that are not available in gRPC. - Keep one client instance per app/script and add the Kiosk extension with
$extend(kiosk()). - Mainnet and Testnet are supported by default. For Devnet or Localnet, pass package IDs for the rules/extensions you use.
- Mysten Kiosk rules and extensions are not supported on Devnet by default because network wipes would constantly change package IDs.