Token rental status check
Last updated
Last updated
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:
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