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 rental status check

PreviousFunctionality-specific detailsNextToken offed for rent check

Last updated 2 years ago

Internally, Renfter protocol stores crucial protocol data using data types specific for Solidity language, but also by using common types like structures, which could contain multiple primary data types and store them in an efficient and semantically correct way.

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 RentalDetails object, the following rules should be followed:

  • If object.expirationTs zero, the token is not rented

  • If object.exiprationTs is value different than zero, the token is rented out

Documentation