iota_decompile
Decompile deployed Move modules to retrieve their ABI, including structs, functions, and type parameters for smart contract analysis.
Instructions
Retrieve and decompile a deployed Move module. Returns the module's ABI (structs, functions, type params).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| package_id | Yes | Package object ID (0x...) | |
| module_name | Yes | Module name within the package |
Implementation Reference
- src/index.ts:317-326 (handler)The iota_decompile tool is registered and implemented directly here, using the iota_getNormalizedMoveModule RPC call.
server.tool( "iota_decompile", "Retrieve and decompile a deployed Move module. Returns the module's ABI (structs, functions, type params).", { package_id: z.string().describe("Package object ID (0x...)"), module_name: z.string().describe("Module name within the package"), }, async ({ package_id, module_name }) => text(await rpc("iota_getNormalizedMoveModule", [package_id, module_name])) );