For AI agents: an LLM-friendly Markdown version of every page is available by appending .md to its URL or by sending an Accept: text/markdown request header. The full documentation index is at https://www.ankr.com/docs/llms.txt
Skip to main content

IOTA — iotax, iota (3/3)

API reference for IOTA. All methods ->

Part 3 of 3: 1 · 2 · 3

iota_getNormalizedMoveModule

Retrieves normalized representation of a Move module.

Parameters

  • id (integer; required): a request ID (example: 1).

  • jsonrpc (string; required): a JSON RPC spec used (example: 2.0).

  • method (string; required): a method used for the request.

  • params (array; required):

    • package< ObjectID > (required): the object ID of the Move package that contains the target module.
    • module_name< string > (required): the name of the Move module within the specified package whose normalized representation should be retrieved.

Returns

IotaMoveNormalizedModule< IotaMoveNormalizedModule >
  • address< string > (required): the on-chain address (in hex format) where the Move module is published.
  • exposedFunctions< IotaMoveNormalizedFunction > (required): a mapping of all functions exposed by the module, each including its name, parameters, return types, visibility, and entry status.
  • fileFormatVersion< uint32 > (required): the version number of the Move bytecode file format used by this module.
  • friends<[ IotaMoveModuleId ]> (required): list of module IDs that are declared as "friends" of this module — allowing access to its friend-visible members.
  • name< string > (required): the name of the module.
  • structs< IotaMoveNormalizedStruct > (required): a mapping of all struct definitions declared in the module, each including its fields, abilities, and type parameters.

Request example

curl -X POST https://rpc.ankr.com/iota_mainnet/YOUR_ANKR_API_KEY \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"method": "iota_getNormalizedMoveModule",
"params": [
"0x1b33a3cf7eb5dde04ed7ae571db1763006811ff6b7bb35b3d1c780de153af9dd",
"request"
],
"id": 1
}'

Response example

{
"jsonrpc": "2.0",
"result": {
"fileFormatVersion": 6,
"address": "0x1b33a3cf7eb5dde04ed7ae571db1763006811ff6b7bb35b3d1c780de153af9dd",
"name": "request",
"friends": [],
"structs": {},
"exposedFunctions": {}
},
"id": 1
}