RentFun-JavaScript-SDK
Last updated
Last updated
The was developed to make it easy for all partners to integrate RentFun.
Fetch rental information
NFT issuers can easily fetch a player's rental information to determine whether to allow the player to log in or not.
Lend NFTs(ERC721 standard)
NFT owners can lend out their NFTs to earn a rental fee. RentFun will create a vault contract for each NFT owner to escrow the NFTs. The NFT owner will be the only owner of the vault contract, and no one else can transfer the NFTs in this vault contract except the NFT owner.
Rent NFTs
Renters, for example, can pay a fraction of the rental fee to get access rights to NFTs from NFT owners. The NFTs will be escrowed in the NFT owner's vault contract for the full rental term.
Cancel to lend out NFTs NFT owners can cancel the lending of NFTs that are already listed in the marketplace. However, if the listed NFTs are in an existing rental contract, they cannot be cancelled by the NFT owner.
Check if a certain NFT is under rental contract