post https://api.infstones.com/sui/mainnet/
Move Utils
Return the argument types of a Move function, based on normalized Type.
Parameters
Key | Required | Type |
---|---|---|
package | ✅ | ObjectID |
module | ✅ | String |
function | ✅ | String |
"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_getMoveFunctionArgTypes",
"params": [
"0x0000000000000000000000000000000000000000000000000000000000000002",
"bag",
"borrow"
]
}
'
Response
{
"jsonrpc": "2.0",
"result": [
{
"Object": "ByImmutableReference"
},
"Pure"
],
"id": 1
}