Skip to content

RarityAttribute

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

public record RarityAttribute

One trait with how common it is across the whole collection.

Constructors

RarityAttribute(string, string, double)

public RarityAttribute(string Trait_type, string Value, double RarityPct);

Parameters

  • Trait_type (string) - The trait category.
  • Value (string) - Its value for this asset.
  • RarityPct (double) - Percentage of the collection carrying it.

Properties

RarityPct

public double RarityPct { get; init; }

Percentage of the collection carrying it.

Trait_type

public string Trait_type { get; init; }

The trait category.

Value

public string Value { get; init; }

Its value for this asset.