Logo di Sui Ts Sdk Backend

Sui Ts Sdk Backend

Organizzazione
MystenLabs
sui-ts-sdk-backend

Sui TypeScript SDK for backend services and autonomous agents. Use when building a backend, agent, or service that interacts with Sui programmatically without CLI — keypair creation, faucet funding, client setup, transaction building and signing, package publishing from code, sponsored transactions, running transactions at scale with executors, cloud KMS signing (AWS/GCP), and multisig workflows. Also use when the user asks how to bootstrap a Sui agent, build a backend signer service, or run high-throughput transaction pipelines. For frontend dApp development with wallets, see the `frontend-apps` skill. For SDK selection (TS vs Rust vs community), see the `sui-sdks` skill. For PTB semantics and command reference, see the `ptbs` skill. For Move smart contract development, see the `sui-move` skill.

Panoramica

Pubblicato daMystenLabs
Repositoryskills
Nome della skillsui-ts-sdk-backend
Stelle
21
Fork
12
File inclusi
7
LicenzaApache-2.0
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • File inclusi: 7

    Script, template e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da MystenLabs su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Sui Ts Sdk Backend in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/MystenLabs/skills/tree/main/sui-ts-sdk-backend
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/MystenLabs/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/sui-ts-sdk-backend .claude/skills/sui-ts-sdk-backend
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Sui Ts Sdk Backend in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Sui Ts Sdk Backend non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Sui Ts Sdk Backend non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

Sui TypeScript SDK — Backend & Agent Patterns

MCP tool: When available in your environment, also query the Sui documentation MCP server (https://sui.mcp.kapa.ai) for up-to-date answers. Use it for verification and for details not covered by these reference files.

Source constraint: All information in this skill is sourced exclusively from sdk.mystenlabs.com. When extending or updating this skill, only pull from this source. Do not use third-party blogs, tutorials, or unofficial documentation.

This skill covers using the Sui TypeScript SDK (@mysten/sui v2) for backend services and autonomous agents that cannot use the Sui CLI. It provides the end-to-end programmatic workflow: creating keypairs, funding addresses, connecting to networks, building and signing transactions, publishing packages, sponsoring transactions for users, running at scale, and signing with cloud KMS or multisig.

All patterns in this skill are derived from: https://sdk.mystenlabs.com

If unsure about any API, fetch the relevant page before answering. Do not guess or extrapolate.


Reference files

bootstrap — Keypair, Faucet, and Client Setup

Path: bootstrap.md Load when: creating a keypair programmatically, funding an address from the faucet without CLI, configuring a SuiGrpcClient or SuiGraphQLClient, or bootstrapping an agent's first connection to Sui. Covers: keypair creation (random, mnemonic, import/export, Bech32 suiprivkey format), all three key types (Ed25519, Secp256k1, Secp256r1), programmatic faucet requests, client instantiation and network selection, client extensions, the complete bootstrap sequence.

transactions — Building, Coins, and Execution

Path: transactions.md Load when: building transactions with tx.coin() or tx.balance(), handling address balances vs coin objects, signing and executing from a backend keypair, checking results, waiting for indexing, or handling gasless transactions. Covers: tx.coin() and tx.balance() (the recommended coin access pattern), address balances vs coin objects, splitting and merging coins, signing with keypairs directly, result handling (FailedTransaction checks), waitForTransaction, gasless stablecoin transfers.

publishing — Programmatic Package Publish and Upgrade

Path: publishing.md Load when: publishing a Move package from TypeScript without CLI, upgrading a published package programmatically, or constructing Publish/Upgrade PTB commands. Covers: building Move bytecode, constructing Publish commands in PTBs, executing publish transactions, extracting package ID and UpgradeCap from results, programmatic upgrades with UpgradeCap, upgrade policies.

sponsorship — Sponsored Transactions

Path: sponsorship.md Load when: sponsoring transactions for users, building a gas station backend, using the @mysten-incubation/sponsor SDK, or implementing address-balance or coin-based sponsorship flows. Covers: @mysten-incubation/sponsor package, client-builds flow (recommended), backend validation and co-signing, config endpoint pattern, coin-based vs address-balance sponsorship, useGasCoin: false for token transfers, result handling (Rejected vs FailedTransaction vs success).

executors — Running Transactions at Scale

Path: executors.md Load when: running many transactions from one address, building a high-throughput pipeline, managing gas pools, or needing parallel or serial transaction execution without manual gas management. Covers: SerialTransactionExecutor (queuing, gas merging, object caching), ParallelTransactionExecutor (concurrent execution, gas pool, conflict detection), configuration options, best practices for unresolved object IDs.

signing — Cloud KMS and Multisig

Path: signing.md Load when: signing with AWS KMS or GCP KMS, setting up multisig wallets, combining partial signatures, mixing keypair types (Ed25519 + zkLogin + passkey), or building a custody/signer service. Covers: Signer interface (shared across all signer types), AWS KMS signer (@mysten/aws-kms-signer), GCP KMS signer (@mysten/gcp-kms-signer), MultiSigPublicKey setup (threshold, weights), MultiSigSigner, combining partial signatures, hybrid multisig (keypairs + zkLogin + passkeys).


Routing guide

TaskLoad
Bootstrapping an agent from scratchbootstrap
Creating a keypair without CLIbootstrap
Getting testnet SUI without CLIbootstrap
Connecting to Mainnet/Testnet/Devnetbootstrap
Building a transaction with coin accesstransactions
Signing and executing from a backendtransactions
Handling address balances vs coin objectstransactions
Publishing a Move package from TypeScriptpublishing
Upgrading a package programmaticallypublishing
Sponsoring transactions for userssponsorship
Building a gas station backendsponsorship
Running many transactions efficientlyexecutors
Building a high-throughput pipelineexecutors
Signing with AWS or GCP KMSsigning
Setting up multisigsigning
Building a custody servicesigning
Full backend service from scratchall reference files
Agent onboarding end-to-endbootstrap + transactions

Rules

  • Always use @mysten/sui v2 (@mysten/sui/grpc, @mysten/sui/keypairs/ed25519, etc.). Never use the deprecated @mysten/sui.js v1.
  • Always use SuiGrpcClient as the default client. Use SuiGraphQLClient only when you need flexible relational queries.
  • Always check result.$kind after transaction execution. A result that is not Rejected can still be FailedTransaction (executed on-chain but aborted — gas is still consumed).
  • Always call await client.waitForTransaction({ result }) before reading state that depends on a transaction's effects.
  • Use tx.coin() and tx.balance() as the primary way to access funds. They automatically resolve from both address balances and coin objects. Specify type for non-SUI tokens.
  • For transfers, prefer balance::send_funds over transferObjects. It deposits directly into the recipient's address balance, avoiding versioned coin objects on the receiving side.
  • For sponsored transactions where the sender needs to transfer their own tokens, set useGasCoin: false on tx.coin() / tx.balance() calls to source from the sender's balance instead of the sponsor's gas coin.
  • For scale, use SerialTransactionExecutor or ParallelTransactionExecutor instead of manual gas management loops.
  • For production backends, use AWS KMS or GCP KMS signers instead of storing raw private keys.

Common mistakes

  • Storing raw private keys in environment variables for production. Use AWS KMS or GCP KMS signers. Raw keys are acceptable for development/testing only.
  • Not waiting for indexing after a transaction. Read APIs may not immediately reflect transaction effects. Always waitForTransaction before dependent reads.
  • Assuming result means success. Check result.$kind !== 'FailedTransaction'. A FailedTransaction was executed on-chain (gas consumed) but the Move call aborted.
  • Using splitCoins(tx.gas, ...) when the sender is not the gas owner. In sponsored transactions, tx.gas belongs to the sponsor. If the sender needs to transfer their own tokens, use tx.coin() with useGasCoin: false to source from the sender's balance instead.
  • Running multiple ParallelTransactionExecutor instances on the same address. This causes gas coin conflicts. Use a single executor per address.
  • Building transactions with fully-specified object refs when using executors. Use unresolved object IDs (tx.object('0x...')) so the executor can leverage its object cache.

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA Sui Ts Sdk Backend?

Sui TypeScript SDK for backend services and autonomous agents. Use when building a backend, agent, or service that interacts with Sui programmatically without CLI — keypair creation, faucet funding, client setup, transaction building and signing, package publishing from code, sponsored transactions, running transactions at scale with executors, cloud KMS signing (AWS/GCP), and multisig workflows. Also use when the user asks how to bootstrap a Sui agent, build a backend signer service, or run high-throughput transaction pipelines. For frontend dApp development with wallets, see the `frontend...

Perché usare Sui Ts Sdk Backend su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Sui Ts Sdk Backend è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Sui Ts Sdk Backend in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/MystenLabs/skills/tree/main/sui-ts-sdk-backend. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Sui Ts Sdk Backend?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Sui Ts Sdk Backend?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Sui Ts Sdk Backend: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Sui Ts Sdk Backend è gratuita?

Sì. È pubblicata su GitHub da MystenLabs con licenza Apache-2.0. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇