Developers
FAQRoadmapEcosystemDevelopers
main
main
  • Welcome to Vera
  • Definitions
  • 👋Getting Started
    • Prerequisites
    • Setting Up The Node
    • Interact With The Node
    • Building Smart Contracts
    • Deploying Our PoC
  • Asset Manager
  • Intrest Calculation
  • 🗒️ API References
    • NFT Lending
    • NFT Leasing
    • NFT Exchange
  • 🔗Useful links
    • Website
    • Github
    • Telegram
    • Twitter
Powered by GitBook
On this page
  • listToken
  • Lend
  • withdraw
  • cancleLoan
  • listLoans

Was this helpful?

  1. 🗒️ API References

NFT Lending

Allow NFT owners to borrow stable coins, or other tokens against their NFT assets.

listToken

Input:

  • NFT address, the tokenID

  • Address in which they want to get paid and the amount

  • Loan duration

Output:

  • Tx ID

This function will be used by borrowers to list a new loan opportunity. **When 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.

PreviousIntrest CalculationNextNFT Leasing

Last updated 4 years ago

Was this helpful?