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

Guest Post: The Strong Legal Case That Hashi Transactions Are Not Taxable Events

A note prepared by Fenwick law firm on the tax treatment of Hashi BTC transactions

4min read
Sui Foundation

Recap 8/10 Move AMA: Move Programming Language with Mysten Engineers

This recap covers an AMA about the Move programming language with Mysten Labs engineers.

10min read
Sui Foundation

Enhancing Blockchain Security with Multi-Signature Wallets

Desig Labs multi-signature technology makes it possible to create blockchain wallets requiring any number of keys to open.

8min read
Sui Foundation

Recap 6/23 Sui AMA: Tokenomics with Alonso de Gortari

This recap covers an AMA on Sui tokenomics with Alonso De Gortari.

25min read
Sui Foundation

Open Market Group’s Real-World Asset Opportunities Land on Sui

Open Market Group unlocks secure access to offchain yield on Sui.

1min read
Sui Foundation

Sui Prover: Bringing Formal Verification to Sui

With the Sui Prover, developers can now mathematically guarantee that their smart contracts behave exactly as intended, unlocking a new standard for safety on Sui.

4min read
Sam Blackshear