sui_getNormalizedMoveModulesByPackage
Return structured representations of all modules in the given package
Return structured representations of all modules in the given package
Parameters
package
: <ObjectID>
-
Returns
BTreeMap<String,SuiMoveNormalizedModule>
: <object>
Example Request and Result for sui_getNormalizedMoveModulesByPackage
Request
curl
--location --request POST 'https://sui-testnet.blastapi.io/<project_id>' \
--header 'Content-Type: application/json' \
--data-raw '{
"jsonrpc": "2.0",
"id": 1,
"method": "sui_getNormalizedMoveModulesByPackage",
"params": [
"0xba483c73a9b79bcc592cc5f163465ff1bc5c5d2e"
]
}'
Result:
{
"jsonrpc": "2.0",
"result": {
"address": {
"fileFormatVersion": 6,
"address": "0x2",
"name": "address",
"friends": [],
"structs": {},
"exposedFunctions": {
"from_bytes": {
"visibility": "Public",
"isEntry": false,
"typeParameters": [],
"parameters": [
{
"Vector": "U8"
}
],
"return": [
"Address"
]
},
"from_u256": {
"visibility": "Public",
"isEntry": false,
"typeParameters": [],
"parameters": [
"U256"
],
"return": [
"Address"
]
},
"length": {
"visibility": "Public",
"isEntry": false,
"typeParameters": [],
"parameters": [],
"return": [
"U64"
]
},
"max": {
"visibility": "Public",
"isEntry": false,
"typeParameters": [],
"parameters": [],
"return": [
"U256"
]
},
"to_ascii_string": {
"visibility": "Public",
"isEntry": false,
"typeParameters": [],
"parameters": [
"Address"
],
"return": [
{
"Struct": {
"address": "0x1",
"module": "ascii",
"name": "String",
"typeArguments": []
}
}
]
},
"to_bytes": {
"visibility": "Public",
"isEntry": false,
"typeParameters": [],
"parameters": [
"Address"
],
"return": [
{
"Vector": "U8"
}
]
},
"to_string": {
"visibility": "Public",
"isEntry": false,
"typeParameters": [],
"parameters": [
"Address"
],
"return": [
{
"Struct": {
"address": "0x1",
"module": "string",
"name": "String",
"typeArguments": []
}
}
]
},
"to_u256": {
"visibility": "Public",
"isEntry": false,
"typeParameters": [],
"parameters": [
"Address"
],
"return": [
"U256"
]
}
}
},
"bag": {
"fileFormatVersion": 6,
"address": "0x2",
"name": "bag",
"friends": [],
"structs": {
"Bag": {
"abilities": {
"abilities": [
"Store",
"Key"
]
},
"typeParameters": [],
"fields": [
{
"name": "id",
"type": {
"Struct": {
"address": "0x2",
"module": "object",
"name": "UID",
"typeArguments": []
}
}
},
{
"name": "size",
"type": "U64"
}
]
}
},
"exposedFunctions": {
"add": {
"visibility": "Public",
"isEntry": false,
"typeParameters": [
{
"abilities": [
"Copy",
"Drop",
"Store"
]
},
{
"abilities": [
"Store"
]
}
],
"parameters": [
{
"MutableReference": {
"Struct": {
"address": "0x2",
"module": "bag",
"name": "Bag",
"typeArguments": []
}
}
},
{
"TypeParameter": 0
},
{
"TypeParameter": 1
}
],
"return": []
},
"borrow": {
"visibility": "Public",
"isEntry": false,
"typeParameters": [
{
"abilities": [
"Copy",
"Drop",
"Store"
]
},
{
"abilities": [
"Store"
]
}
],
"parameters": [
{
"Reference": {
"Struct": {
"address": "0x2",
"module": "bag",
"name": "Bag",
"typeArguments": []
}
}
},
{
"TypeParameter": 0
}
],
"return": [
{
"Reference": {
"TypeParameter": 1
}
}
]
},
"borrow_mut": {
"visibility": "Public",
"isEntry": false,
"typeParameters": [
{
"abilities": [
"Copy",
"Drop",
"Store"
]
},
{
"abilities": [
"Store"
]
}
],
"parameters": [
{
"MutableReference": {
"Struct": {
"address": "0x2",
"module": "bag",
"name": "Bag",
"typeArguments": []
}
}
},
{
"TypeParameter": 0
}
],
"return": [
{
"MutableReference": {
"TypeParameter": 1
}
}
]
},
"contains": {
"visibility": "Public",
"isEntry": false,
"typeParameters": [
{
"abilities": [
"Copy",
"Drop",
"Store"
]
}
],
"parameters": [
{
"Reference": {
"Struct": {
"address": "0x2",
"module": "bag",
"name": "Bag",
"typeArguments": []
}
}
},
{
"TypeParameter": 0
}
],
"return": [
"Bool"
]
},
.....................................................