# getNftContract

### Description

This endpoint retrieves NFT contract information by blockchain and contract address.

{% code overflow="wrap" %}

```javascript
public getNftContract(chain: VyChain, contractAddress: string, query?: VyQuery_GetNftContract) : VyPromise<VyNftContractDto>
```

{% endcode %}

{% tabs %}
{% tab title="Details" %}
**Parameters**

| chain            | [VyChain](https://sdk.venly.io/sdk-reference/ts-js-v3/object-references/enum/vychain)                                          | The blockchain to filter by           |
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------- |
| contractAddress  | string                                                                                                                         | The contract address of the NFT       |
| query (optional) | [VyQuery\_GetNftContract](https://sdk.venly.io/sdk-reference/ts-js-v3/object-references/wallet/queries/vyquery_getnftcontract) | Query to filter the operation results |

**Returns**

VyPromise<[VyNftContractDto](https://sdk.venly.io/sdk-reference/ts-js-v3/object-references/wallet/vynftcontractdto)>\
NFT contract information retrieved successfully.
{% endtab %}
{% endtabs %}
