Zum Inhalt
HALOWERK

Gamingwerk

nft metadata mutate

Applies ordered set/remove attribute and set name/description operations to caller-supplied metadata, then hashes canonical output. It does not mint, sign, upload, mutate an on-chain token, preserve media, or verify ownership.

POST https://gaming.halowerk.com/v1/nft-metadata-mutate

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
asset_idstringJa
metadataobjectJa
operationsarrayJa
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "required": [
    "asset_id",
    "metadata",
    "operations"
  ],
  "additionalProperties": false,
  "properties": {
    "asset_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 256
    },
    "metadata": {
      "type": "object",
      "required": [
        "name",
        "description",
        "attributes"
      ],
      "additionalProperties": false,
      "properties": {
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 256
        },
        "description": {
          "type": "string",
          "minLength": 0,
          "maxLength": 4096
        },
        "attributes": {
          "type": "array",
          "maxItems": 1000,
          "items": {
            "type": "object",
            "required": [
              "key",
              "value"
            ],
            "additionalProperties": false,
            "properties": {
              "key": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "value": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "null"
                ]
              }
            }
          }
        }
      }
    },
    "operations": {
      "type": "array",
      "minItems": 1,
      "maxItems": 1000,
      "items": {
        "type": "object",
        "required": [
          "op"
        ],
        "additionalProperties": false,
        "properties": {
          "op": {
            "type": "string",
            "enum": [
              "set_attribute",
              "remove_attribute",
              "set_name",
              "set_description"
            ]
          },
          "key": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "value": {
            "type": [
              "string",
              "number",
              "boolean",
              "null"
            ]
          }
        }
      }
    }
  }
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "asset_id": "sword-0042",
  "metadata": {
    "name": "Harbor Blade",
    "description": "A weathered steel blade.",
    "attributes": [
      {
        "key": "level",
        "value": 3
      },
      {
        "key": "element",
        "value": "water"
      }
    ]
  },
  "operations": [
    {
      "op": "set_attribute",
      "key": "level",
      "value": 4
    },
    {
      "op": "remove_attribute",
      "key": "element"
    },
    {
      "op": "set_description",
      "value": "A reforged weathered steel blade."
    }
  ]
}

Ergebnis & Dokumentation

Veröffentlichtes Ergebnisschema anzeigen
{
  "$ref": "https://gaming.halowerk.com/v1/nft-metadata-mutate/schema#/outputSchema"
}

Veröffentlichtes Ergebnisbeispiel öffnen

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-01, 15:19 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →