Token offed for rent check
Like with checking token rental status, 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 Documentation page.
For retrieved RentDetails object, the following rule should be followed:
If
object.pricePerSecondis zero, the token is not offered for rentif
object.pricePerSecondis value different than zero, the token is offered for rent
Last updated