Interface AttributesMetadata

interface AttributesMetadata {
    attributes?: {
        display_type?: "string" | "number" | "boolean" | "date";
        trait_type?: string;
        value: null | string | number | boolean;
    }[];
}

Hierarchy (view full)

Properties

Properties

attributes?: {
    display_type?: "string" | "number" | "boolean" | "date";
    trait_type?: string;
    value: null | string | number | boolean;
}[]

Custom attributes.

Type declaration

  • Optional display_type?: "string" | "number" | "boolean" | "date"
  • Optional trait_type?: string
  • value: null | string | number | boolean

Example

[{ value: "post", trait_type: "type" }, { value: "https://example.com", trait_type: "URL" }, { value: 1546360800, trait_type: 'Birthday', "display_type": "date" }]

Generated using TypeDoc