# How to get the attribute of a Non-Fungible token?

* **getAttribute**

This function is used to Get the attribute of an NFT token.

```typescript
import { L1XProvider, NFTTokenGetAttributeArg } from "@l1x/l1x-wallet-sdk";

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

let params: NFTTokenGetAttributeArg = {
  contract_address: "cf0289e86714d97979d726eeb2fa3a23b9c007c1",
};

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

**Parameters**:

The attribute for getting the token attribute.

```typescript
{
    "contract_address": "cf0289e86714d97979d726eeb2fa3a23b9c007c1"
}
```

**Returns:**

The response containing the token attribute.

```typescript
{
    "name": "MyNFT",
    "symbol": "MN",
    "total_minted": "24"
}
```


---

# 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://l1x-sdk.gitbook.io/l1x-developer-interface/interface-essentials/l1x-typescript-sdk/l1x-library/other-methods/non-fungible-token-methods/how-to-get-the-attribute-of-a-non-fungible-token.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.
