Interface iBadgeMetadataDetails<T>

interface iBadgeMetadataDetails<T> {
    badgeIds: iUintRange<T>[];
    customData: string;
    fetchedUri?: string;
    metadata?: iMetadata<T>;
    toUploadToIpfs?: boolean;
    uri: string;
}

Type Parameters

Implemented by

Properties

badgeIds: iUintRange<T>[]

The badge IDs that correspond to the metadata

customData: string

Custom data

fetchedUri?: string

The URI that the metadata was fetched from with placeholders replaced.

metadata?: iMetadata<T>

The metadata fetched by the URI

toUploadToIpfs?: boolean

Flag to denote if the metadata is new and should be updated. Used internally.

uri: string

The URI that the metadata was fetched from. This is the original on-chain URI, so may still have placeholders (i.e. {id} or {address})