SuiKit

object SuiKit

A singleton object that holds a default, globally accessible Sui client instance.

This pattern simplifies the API by allowing functions like ptb to work without explicitly passing a client instance for every call, making the syntax cleaner (ptb { ... }).

The default client is automatically set when the first Sui object is instantiated in an application. This behavior can be opted out of on a per-instance basis if needed.

Properties

Link copied to clipboard
lateinit var client: Sui

The globally configured default Sui client. Throws an UninitializedPropertyAccessException if accessed before a Sui instance is created.