Type alias Trait

Trait: {
    display_type: TraitDisplayType;
    max_value: string;
    trait_type: string;
    value: string | number | Date;
}

Trait type returned by OpenSea API.

Type declaration

  • display_type: TraitDisplayType

    A field indicating how to display. None is used for string traits.

  • max_value: string

    Ceiling for possible numeric trait values

  • trait_type: string

    The name of the trait category (e.g. 'Background')

  • value: string | number | Date

    The value of the trait (e.g. 'Red')