sui_getNormalizedMoveStruct

Move Utils

Return a structured representation of Move struct

Parameters

KeyRequiredType
packageObjectID
module_nameString
struct_nameString
"params": [
  "0x0000000000000000000000000000000000000000000000000000000000000002",
  "bag",
  "bag"
]

Result

SuiMoveNormalizedStruct : <SuiMoveNormalizedStruct>

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

Example

Request

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

Response

{
    "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
}
Language
Click Try It! to start a request and see the response here!