opensea-js - v8.0.20
    Preparing search index...

    Type Alias Trait

    Trait type returned by OpenSea API.

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

    Properties

    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')