Move modules in a Sui package
suiGetPackageRetrieve a Sui Move package's module index or fetch one module's full function signatures and datatypes. Use it to inspect package structure without loading the entire package.
Instructions
What a published Move package declares, so a caller can pick what to inspect next.
By default this answers with an INDEX: one row per module carrying its name and how many functions and datatypes it holds, capped at 50 rows (raise it with maxModules). Pass module to get that one module in full instead — every function signature and every datatype it declares.
The whole package is never returned; the 0x2 framework alone is around 484 KB. This method has no upstream paging, so a truncated index carries no cursor: the way past the cap is maxModules, then module, then suiGetFunction for a single signature.
Repeated addresses arrive as $n/@n handles, resolved by the ids and packages tables beside them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| module | No | One module to return in full | |
| package | Yes | Package id (0x2 is the framework) | |
| maxModules | No | Rows the index lists before it truncates (default 50). Ignored when `module` is given. |