Skip to main content

sui_getMoveFunctionArgTypes

Return the argument types of a Move function, based on normalized Type.

Return the argument types of a Move function, based on normalized Type.

Parameters

  • package : <ObjectID> -
  • module : <string> -
  • function : <string> -

Returns

Vec<MoveFunctionArgType> : <[MoveFunctionArgType]>

Example Request and Result for sui_getMoveFunctionArgTypes

Request

curl --location 'https://sui-testnet.blastapi.io/<project-id>' \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"id": 1,
"method": "sui_getMoveFunctionArgTypes",
"params": [
"0x0000000000000000000000000000000000000000000000000000000000000002",
"bag",
"borrow"
]
}'

Result

{
"jsonrpc": "2.0",
"result": [
{
"Object": "ByImmutableReference"
},
"Pure"
],
"id": 1
}