sui_getNormalizedMoveFunction
Return a structured representation of Move function.
package
:<ObjectID>
-module_name
:<string>
-function_name
:<string>
-
SuiMoveNormalizedFunction
: <SuiMoveNormalizedFunction>
- is_entry :
<boolean>
- parameters :
<[SuiMoveNormalizedType]>
- return_ :
<[SuiMoveNormalizedType]>
- type_parameters :
<[SuiMoveAbilitySet]>
- visibility :
<SuiMoveVisibility>
Request
curl
--location --request POST 'https://sui-devnet.blastapi.io/<project_id>' \
--header 'Content-Type: application/json' \
--data-raw '{
"jsonrpc": "2.0",
"id": 1,
"method": "sui_getNormalizedMoveFunction",
"params": [
"0xba483c73a9b79bcc592cc5f163465ff1bc5c5d2e",
"capy",
"breed_and_keep"
]
}'
Result
{
"jsonrpc": "2.0",
"result": {
"visibility": "Public",
"is_entry": true,
"type_parameters": [],
"parameters": [
{
"MutableReference": {
"Struct": {
"address": "0xba483c73a9b79bcc592cc5f163465ff1bc5c5d2e",
"module": "capy",
"name": "CapyRegistry",
"type_arguments": []
}
}
},
{
"MutableReference": {
"Struct": {
"address": "0xba483c73a9b79bcc592cc5f163465ff1bc5c5d2e",
"module": "capy",
"name": "Capy",
"type_arguments": []
}
}
},
{
"MutableReference": {
"Struct": {
"address": "0xba483c73a9b79bcc592cc5f163465ff1bc5c5d2e",
"module": "capy",
"name": "Capy",
"type_arguments": []
}
}
},
{
"MutableReference": {
"Struct": {
"address": "0x2",
"module": "tx_context",
"name": "TxContext",
"type_arguments": []
}
}
}
],
"return_": []
},
"id": 1
}
Last modified 2mo ago