Ephemeral Shared Objects, a new feature on Sui, give developers the ability to delete shared objects. This new feature increases the toolset available to developers and the ways they can interact with shared objects, offering improved cost efficiency and expressivity in object management.

Enabling the temporary creation and subsequent deletion of shared objects, once their purpose is served, can streamline interactions with shared objects. This feature eliminates the need for flags or other logic to indicate the status of shared objects, allows for simpler logic and enhanced clarity in smart contracts, and reclaiming object storage fees once the shared objects are deleted.

To summarize some of the benefits of Ephemeral Shared Objects:

  • Full lifecycle management: Deletion of shared objects completes the object lifecycle on Sui for shared objects, allowing for creation, usage, and deletion.
  • Recovery of object storage fees and cost reduction: By enabling the deletion of shared objects, developers can reduce the costs associated with maintaining unnecessary data on the blockchain by recovering storage fees for shared objects that are no longer in use.
  • Enhanced expressivity and clarity of logic: Developers can now work with shared objects without needing to encode post-usage logic to prevent interaction with the shared object after it is no longer needed: Once a shared object’s usefulness has concluded it can simply be deleted.

Developers eager to leverage this new feature can find an example of Ephemeral Shared Objects in the most recent E2E app guide on shared escrow — in this case to reclaim the shared escrow object after the escrow has concluded.

Happy building!

Author

Sam Blackshear

Co-Founder, CTO, Mysten Labs, Creator of Move Language

CTO of Mysten Labs and inventor of Move language. Former Principal Engineer at Meta.

Read more like this

Building Composable, Agent-Ready Applications on Sui

Applications are shifting from isolated products to persistent, composable systems, and Sui’s stack is designed to support that transition end to end

9min read
Sui Foundation

SWAYE Demos Telegram-based Games Onboarding

Using Telegram as a game launchpad leverages a platform that many people around the world already use.

2min read
Sui Foundation

All About Blockchain Data Models

Sui’s object-oriented model unlocks new possibilities.

3min read
Sam Blackshear

DeepBook Supercharges DeFi on Sui

The launch of Sui's first native central limit order book gives builders an easy means of plugging liquidity into their apps.

3min read
Sui Foundation

Sam Blackshear on Built-in Move's Security

Secure by design, Move prevents common security exploits and helps developers write safe code.

1min read
Sam Blackshear

Sui Bridge Test Delivers Bug Fixes and Insights

Community feedback is crucial to strengthening Sui Bridge and offer a better bridging experience.

2min read
Sui Foundation