sui_getNormalizedMoveFunction

Move Utils

Return a structured representation of Move function.

Parameters

KeyRequiredType
packageObjectID
moduleString
functionString
"params": [
  "0x0000000000000000000000000000000000000000000000000000000000000002",
  "bag",
  "borrow"
]

Result

Vec<MoveFunctionArgType> : <[MoveFunctionArgType]>

Example

Request

curl <your-endpoint> \
    -X POST \
    -H "Content-Type: application/json" \
    -d '
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "sui_getNormalizedMoveFunction",
  "params": [
    "0x0000000000000000000000000000000000000000000000000000000000000002",
    "bag",
    "borrow"
  ]
}
'

Response

{
    "jsonrpc": "2.0",
    "result": {
        "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
                }
            }
        ]
    },
    "id": 1
}
Language
Click Try It! to start a request and see the response here!