Skip to main content

Sui Framework Reference

The Sui Framework includes the core onchain libraries for Move developers. These libraries provide the types and functions you use to define objects, manage ownership, handle coins, emit events, and interact with system-level features.

Browse the reference

Access the framework reference in either of the following formats:

  • Sui Framework Reference docs — Searchable HTML reference generated from source. Use the search bar to find specific functions, structs, or modules.
  • Sui GitHub repo — Markdown format in the repository. Use GitHub search or browse the directory structure.

Framework packages

The framework is organized into 3 packages:

sui-framework

Core types and functions for Sui development. Commonly used modules include:

ModulePurpose
sui::objectObject creation (new), deletion (delete), and ID utilities
sui::transferTransfer, share, and freeze objects across ownership types
sui::coinFungible token standard (Coin<T>, TreasuryCap, minting, burning)
sui::eventEmit events for offchain indexing and monitoring
sui::clockAccess the network clock for timestamp-based logic
sui::dynamic_fieldAttach and manage dynamic fields on objects
sui::dynamic_object_fieldAttach and manage dynamic object fields
sui::displayObject Display V2 template engine for offchain rendering
sui::packagePackage upgrade capabilities and policies
sui::tx_contextTransaction metadata (sender, epoch, object creation)

sui-system

Validator set, staking, and governance modules. You typically do not import these directly unless you are building staking interfaces or validator tooling.

move-stdlib

The standard Move library provides foundational types available to all Move programs:

ModulePurpose
std::vectorGrowable, ordered collections
std::optionOptional values (Option<T>)
std::stringUTF-8 encoded strings
std::hashSHA2-256 and SHA3-256 hash functions
std::type_nameType reflection and name utilities
std::asciiASCII string handling

Find a specific function or type

To find a specific function or type in the framework:

  1. Open the HTML reference.
  2. Use the search bar to enter the function or type name (for example, share_object, Coin, TreasuryCap).
  3. Click the result to see the full signature, type parameters, and documentation.