Move

interface Move

Defines the API for inspecting Move modules, functions, and types on the Sui network.

This interface provides tools to get normalized representations and type layouts for on-chain Move code.

Inheritors

Functions

Link copied to clipboard
abstract suspend fun getMoveFunctionArgTypes(id: String): <Error class: unknown class><GetMoveFunctionArgTypesQuery.Data?, <Error class: unknown class>>

Fetches the argument types for a specific Move function.

Link copied to clipboard
abstract suspend fun getNormalizedMoveFunction(id: String): <Error class: unknown class><GetNormalizedMoveFunctionQuery.Data?, <Error class: unknown class>>

Fetches the normalized (desugared and with types expanded) representation of a Move function.

Link copied to clipboard
abstract suspend fun getNormalizedMoveModule(packageId: String, module: String): <Error class: unknown class><GetNormalizedMoveModuleQuery.Data?, <Error class: unknown class>>

Fetches the normalized representation of a specific module within a package.

Link copied to clipboard
abstract suspend fun getNormalizedMoveModulesByPackage(packageId: String, cursor: String?): <Error class: unknown class><GetNormalizedMoveModulesByPackageQuery.Data?, <Error class: unknown class>>

Fetches a paginated list of all normalized modules within a given package.

Link copied to clipboard
abstract suspend fun getNormalizedMoveStruct(id: String): <Error class: unknown class><GetNormalizedMoveStructQuery.Data?, <Error class: unknown class>>

Fetches the normalized representation of a Move struct.

Link copied to clipboard
abstract suspend fun getTypeLayout(type: String): <Error class: unknown class><GetTypeLayoutQuery.Data?, <Error class: unknown class>>

Resolves the on-chain memory layout for a specified Move type.

Link copied to clipboard
abstract suspend fun paginateMoveModuleLists(packageId: String, module: String, hasMoreFriends: Boolean, hasMoreStructs: Boolean, hasMoreFunctions: Boolean, hasMoreEnums: Boolean, afterFriends: String? = null, afterStructs: String? = null, afterFunctions: String? = null, afterEnums: String? = null): <Error class: unknown class><PaginateMoveModuleListsQuery.Data?, <Error class: unknown class>>

Fetches paginated lists of components within a Move module.