> For the complete documentation index, see [llms.txt](https://dg-market.gitbook.io/dg-live/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dg-market.gitbook.io/dg-live/developer-resources/smart-contract-reference/methods/getprice.md).

# getPrice

**Description:** This function returns the price of an NFT listed for sale in the marketplace.<br>

**Method header:**

```solidity

function getPrice(address _nftAddress, uint256 _tokenId) public view returns (uint256)



```

**Parameters:**

| Parameter Type | Parameter Name | Parameter Description               |
| -------------- | -------------- | ----------------------------------- |
| address        | \_nftAddress   | The address of the NFT contract.    |
| uint256        | \_tokenId      | The ID of the NFT to get the price. |
