> For the complete documentation index, see [llms.txt](https://l1x-sdk.gitbook.io/l1x-wallet-sdk/4BgPf6WH50hnVEUCHE22/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://l1x-sdk.gitbook.io/l1x-wallet-sdk/4BgPf6WH50hnVEUCHE22/non-fungible-token-methods/how-to-get-token-uri.md).

# How to get token uri?

* **getTokenUri**

This function is used to get the uri of an NFT token by its ID.

<pre class="language-typescript" data-overflow="wrap" data-line-numbers data-full-width="false"><code class="lang-typescript">import { L1XProvider, NFTTokenUriOfArg } from "@l1x/l1x-wallet-sdk";

let l1xProvider = new L1XProvider({
  clusterType: "mainnet",
  endpoint: "https://v2-mainnet-rpc.l1x.foundation",
});

<strong>let params: NFTTokenUriOfArg = {
</strong>    contract_address: "3ea1eed6d04b5453e25f1bf73b303d8a84fff121",
    token_id: 1
};

l1xProvider.tokens.NFT.getTokenUri(params)
  .then((response) => console.log(response)) // log response
  .catch((err) => console.error(err)); // log error

</code></pre>

**Parameters**:

The attribute for getting the token uri.

```json
{
    contract_address: "3ea1eed6d04b5453e25f1bf73b303d8a84fff121",
    token_id: 1
}
```

**Returns:**

The response contains the token uri.

```json
{
    token_uri: "ipfs://sauydgahsbd/1.json"
}
```
