Skip to main content

sui_getNormalizedMoveStruct

Return a structured representation of Move struct

Return a structured representation of Move struct

Parameters

  • package : <ObjectID> -
  • module_name : <string> -
  • struct_name : <string> -

Returns

SuiMoveNormalizedStruct : <SuiMoveNormalizedStruct>

  • abilities : <SuiMoveAbilitySet>
  • fields : <[SuiMoveNormalizedField]>
  • type_parameters : <[SuiMoveStructTypeParameter]>

Example Request and Result for sui_getNormalizedMoveStruct

Request

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

Result:

{
"jsonrpc": "2.0",
"result": {
"abilities": {
"abilities": [
"Store",
"Key"
]
},
"typeParameters": [],
"fields": [
{
"name": "id",
"type": {
"Struct": {
"address": "0x2",
"module": "object",
"name": "UID",
"typeArguments": []
}
}
},
{
"name": "size",
"type": "U64"
}
]
},
"id": 1
}