Skip to content

OpenSeaMetadata

Namespace Nfty.Core.Output in assembly Nfty.Core.

public record OpenSeaMetadata

Standard ERC-721 / OpenSea per-item metadata. Written to metadata/NNNN.json. Deliberately kept standards-pure — only the fields marketplaces expect, no nfty extras.

Constructors

OpenSeaMetadata(string, string, string, IReadOnlyList<MetadataAttribute>)

public OpenSeaMetadata(string Name, string Description, string Image, IReadOnlyList<MetadataAttribute> Attributes);

Parameters

  • Name (string) - The item's published name, "{collection} #{n}".
  • Description (string) - The collection's description.
  • Image (string) - Where the item's image lives, as the metadata records it.
  • Attributes (IReadOnlyList<MetadataAttribute>) - The item's traits.

Properties

Attributes

public IReadOnlyList<MetadataAttribute> Attributes { get; init; }

The item's traits.

Description

public string Description { get; init; }

The collection's description.

Image

public string Image { get; init; }

Where the item's image lives, as the metadata records it.

Name

public string Name { get; init; }

The item's published name, "{collection} #{n}".