Skip to content

Add name and description for files in the HIP412 metadata UI #1839

@justynspooner

Description

@justynspooner

Problem

Hashscan is only displaying the image or Mime Type for each file and not displaying the metadata.name or metadata.description for them. Example of a PixelRug serial as an example:

https://hashscan.io/mainnet/token/0.0.892230/2

Solution

HIP412 specified that we can add metadata to the file, either as an inline object via metadata or an external URI via metadata_uri.

"files": [
    {
      "uri": "ipfs://bafybeibqtpgwpaz45d32mrw2jhnm6ujed4y3cqwv7qxl4qksegvaw5yxaq",
      "type": "model/gltf-binary",
      "metadata": {
        "name": "3D PixelRug Model",
        "description": "The main GLB file for your PixelRug."
      }
    },
    ...
]

The feature would be to add the name and description (as defined in the HIP412 spec) to each file to give them more context.

Example end result

Image

Alternatives

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions