> For the complete documentation index, see [llms.txt](https://docs.vera.financial/developers/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.vera.financial/developers/main/api-references/nft-lending.md).

# NFT Lending

## **listToken**

**Input:**

* NFT address, the tokenID
* Address in which they want to get paid and the amount&#x20;
* Loan duration

**Output:**

* Tx ID

This function will be used by borrowers to list a new loan opportunity.\
\&#xNAN;*\*\**&#x57;hen called, the user will be asked to approve the transaction, and the NFTs will be transferred to the smart contract as collateral. The function will generate a unique trade ID.

## Lend

**Inputs:**

* Tx ID

This function will be called by investors to perform a trade by sending the trade ID. The function will get the tokens to pay with from them.

## **withdraw**

**Inputs:**

* Tx ID

This function will be called by borrower to pay back their loans with interest and get back the NFT

## **cancleLoan**

**Inputs:**

* Tx ID

This function will be called by the investor to get NFT from the smart contract when the borrower fails to pay back on time.

## **listLoans**

**Inputs:** None

**Outputs:** List of available NFT for sale with details.
