Advanced: $CURRENT_USER
Dynamically getting the address of the current user
In situations where it doesn't make sense to hard-code the address of the user for which you would like to retrieve a Collectible or list of Collectibles, the special constant $CURRENT_USER can be used to dynamically insert the current users address.
This constant can be used to help create dynamic websites with Collectibles.
1
<div
2
data-dh-feature="nft"
3
data-dh-property-tag-id="<<UniqueID>>"
4
data-dh-property-asset-token-id="<<TokenID>>"
5
data-dh-property-asset-owner-address="$CURRENT_USER">
6
7
<div
8
data-dh-property-tag-id="<<UniqueID>>"
9
data-dh-property-asset-item="true">
10
11
<img data-dh-property-asset-json-path="image_url" />
12
<h3 data-dh-property-asset-json-path="name"></h3>
13
</div>
14
</div>
Copied!
Last modified 1yr ago
Copy link