Pointers are unique, case-insensitive strings that reference an active entity . Content servers can resolve these pointers to obtain the entity’s identifier.
Remember that both entities and their files are immutable in the Decentraland content system, and their identifiers change when replacement versions are uploaded. Pointers, on the other hand, are stable references that persist across replacements. This is achieved by automatically redirecting the pointer to a new entity when the owner uploads a replacement.
As you may gather, the most common use of pointers is obtaining the ID for the active version (i.e. latest replacement) of an entity , in order to download it.
Pointer Types #
There are 4 types of pointers that content servers can resolve to entities, each with its own syntax:
are parcel coordinates, such as
- Profile pointers are the Ethereum address of the owner.
- Wearable pointers and emote pointers are either collection item or off-chain URNs.
- Store pointers are off-chain URNs with the Ethereum address of the owner.
are the Ethereum address of the owner suffixed by
You can find more details in their specific sections.
Resolving Pointers #
Content servers have an endpoint that can resolve pointers into their active entity’s manifest, by making a
GET request to:
Some useful examples, using the Foundation’s content server:
# An on-chain collection pointer to a wearable: curl "https://peer.decentraland.org/content/entities/wearables/?pointer=urn:decentraland:matic:collections-v2:0x30517529cb5c16f686c6d0b48faae5d250d43005:0" # An off-chain collection pointer to a default asset: curl https://peer.decentraland.org/content/entities/wearables/?pointer=urn:decentraland:off-chain:base-avatars:BaseFemale # A parcel pointer: curl https://peer.decentraland.org/content/entities/wearables/?pointer=0,0 # A profile pointer: curl https://peer.decentraland.org/content/entities/profiles/?pointer=0xe2c2b80ca5ad868f4b30fa83cca2bf12cc95b4fe
Note that, if you already know the entity’s ID, you can download the manifest file directly.