githubEdit

Collections

Collections are groups of wearables and emotes defined in the same off-chain namespace or on-chain contract.

They are not entitiesarrow-up-right in and of themselves, but their individual items can be obtained from content servers normally using pointersarrow-up-right.

URNs and Pointers

Collections are identified using URNs, which are prefixes to their item URNs. There are 4 general types of URNs:

  • v1 collections with Foundation-approved content (deprecated).

  • v2 collections with community-approved content.

  • thirdparty collections with items associated to NFTs outside Decentraland.

  • off-chain collections, containing mostly default items for new avatars.

circle-info

Despite the fact that v1 collections are deprecated and will not be created or updated anymore, they are still valid and their items can be used.

Version 1 and 2 Collections

Both the old v1 and the current v2 collection namespaces have URNs of the same form:

urn:decentraland:<blockchain>:<collections-version>:<contract-address>

For example:

# A collection in the deprecated v1 space:
urn:decentraland:mainnet:collections-v1:DCL Test Masks

# A collection in the v2 community-approved space:
urn:decentraland:matic:collections-v2:0x25a1d66891d44cdf7b8c45802489c1dea7aadf8b

If the :<id> segment is appended at the end, the URN becomes a pointerarrow-up-right to an item inside the collection. See wearable pointers and emote pointers for information on these.

Third-party Collections

Third-party collections, also known as linked wearablesarrow-up-right, are different from regular wearables in that they are tied to existing NFTs outside Decentraland. They allow players to display NFTs from their personal set on their in-world avatars.

Their URNs look like this:

You can find ample information about these in the linked wearablesarrow-up-right documentation for creators.

Discovering Collections

Content servers can give you a list of all known collections, using the /lambdas/collectionsarrow-up-right endpoint.

The response will be an object with a collections property, containing an array of URNs and names. For example:

Last updated