# Listing getHemiNames on NFT Marketplaces

### How to integrate getHemiNames NFTs secondary market metadata? <a href="#how-to-integrate-beranames-nfts-secondary-market-metadata" id="how-to-integrate-beranames-nfts-secondary-market-metadata"></a>

You can integrate NFTs secondary market metadata following the steps below:

1. Fetch the URI endpoint to call from the `tokenURI(uint256 tokenId)` function of the [`BaseRegistrar`](https://explorer.hemi.xyz/address/0x06d3B1f2B242b1BF23C5CFBec14cFE901433DE4a) contract.
   * Where `tokenId` is the token ID of the NFT - `uint256(keccak256(bytes("label")))`.
   * The function returns the metadata endpoint to call for the NFT.
2. Fetch the metadata from the endpoint.

   * you can expect the metadata to be in the format of a JSON file:

   ```
   {
     "name": "hello.hemi",
     "description": "This NFT represents the domain name hello.hemi on the getHemiNames system.",
     "image": "",
     "external_url": "https://www.getheminames.me/domain/hello.hemi",
     "attributes": [
       {
         "trait_type": "Resolved Address",
         "value": "0xe0096004fFb5A6d03769e6b9b333C010742d32d5"
       },
       {
         "trait_type": "Expiration Date",
         "value": "Mon Mar 09 2026"
       }
     ]
   }
   ```

{% hint style="info" %}
You can always decide to save the base URI in your own storage and fetch it from there, thus avoiding the need to call the `tokenURI` function of the [`BaseRegistrar`](https://explorer.hemi.xyz/address/0x06d3B1f2B242b1BF23C5CFBec14cFE901433DE4a) contract.

* Keep in mind that you need to calculate the `tokenId` from the `label` to fetch the correct metadata, so depending on the library you use, you might need to implement the logic to calculate the `tokenId` from the `label`.
  {% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://getheminames.gitbook.io/getheminames/listing-getheminames-on-nft-marketplaces.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
