Skip to content

NftyMetadata

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

public record NftyMetadata

Rich nfty-specific per-item metadata. Written to nfty/NNNN.json alongside the OpenSea file so the OpenSea file stays standards-pure. Carries the generator's extras.

Constructors

NftyMetadata(int, string, string, string, IReadOnlyList<RarityAttribute>, IReadOnlyList<LayerColor>, IReadOnlyList<string>?)

public NftyMetadata(int SetNumber, string Recipe, string Dna, string Seed, IReadOnlyList<RarityAttribute> Rarity, IReadOnlyList<LayerColor> Layers, IReadOnlyList<string>? AbsentLayers = null);

Parameters

  • SetNumber (int) - The asset's number within the Set.
  • Recipe (string) - The id of the recipe it was rolled from.
  • Dna (string) - Its identity hash.
  • Seed (string) - The seed of the run that produced it.
  • Rarity (IReadOnlyList<RarityAttribute>) - The share of the collection carrying each of its traits.
  • Layers (IReadOnlyList<LayerColor>) - What each layer contributed, including the color it rolled.
  • AbsentLayers (IReadOnlyList<string>?) - The ids of optional layers the roll left out; null when none were.

Properties

AbsentLayers

public IReadOnlyList<string>? AbsentLayers { get; init; }

The ids of optional layers the roll left out; null when none were.

Dna

public string Dna { get; init; }

Its identity hash.

Layers

public IReadOnlyList<LayerColor> Layers { get; init; }

What each layer contributed, including the color it rolled.

Rarity

public IReadOnlyList<RarityAttribute> Rarity { get; init; }

The share of the collection carrying each of its traits.

Recipe

public string Recipe { get; init; }

The id of the recipe it was rolled from.

Seed

public string Seed { get; init; }

The seed of the run that produced it.

SetNumber

public int SetNumber { get; init; }

The asset's number within the Set.