Renfter Protocol
  • Welcome
    • Welcome to Renfter Docs
    • Supported Chains
    • Whitelabel Renting Solution
    • Renfter Marketplace
    • Protocol Fees
    • RENFTER Token
  • Renfter Features
    • Uncollateralized NFT Renting
    • Custom Functionality Execution
    • Rewards & Airdrop Sharing
  • Developers
    • Developer Documentation
    • Technical Overview
      • Under the hood
    • Integration
      • API
      • SDKs
        • JavaScript SDK
        • Unity SDK
      • Smart Contracts
        • Functionality-specific details
          • Token rental status check
          • Token offed for rent check
          • Method whitelisting
          • Original NFT method call
        • Documentation
Powered by GitBook
On this page
  1. Developers
  2. Integration
  3. Smart Contracts
  4. Functionality-specific details

Token offed for rent check

PreviousToken rental status checkNextMethod whitelisting

Last updated 2 years ago

Like with , similar rules are applied to check if the token is offered for rent.

In order to check rental status, one must call the following method of Renfter smart contract:

 function getRentDetails(address wContract, uint256 tokenId)
        external
        view
        returns (RentDetails memory);

The description of the method, as well RentDetails structure, can be found on page.

For retrieved RentDetails object, the following rule should be followed:

  • If object.pricePerSecond is zero, the token is not offered for rent

  • if object.pricePerSecond is value different than zero, the token is offered for rent

checking token rental status
Documentation