bitbadgesjs-sdk - v0.22.7
    Preparing search index...

    Class TokenMetadata<T>

    TokenMetadata is used to represent the metadata for a range of token IDs. The metadata can be hosted via a URI (via uri) or stored on-chain (via customData).

    We take first-match only for the token IDs. If a token ID is in multiple TokenMetadata, we take the first match in a linear search.

    Type Parameters

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    customData: string

    Arbitrary custom data that can be stored on-chain

    tokenIds: UintRangeArray<T>

    The token IDs corresponding to the URI.

    uri: string

    The URI where to fetch the token metadata from.

    Methods