Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
NFT rent market
We provide NFT rent market smart contract. This contract deal with a NFT rental process.
This contract has three kinds of properties inside.
Collection (test market)
Service (test market)
Token (test market)
Collection is a NFT group which registered to rent market smart contract. User can use rent service with this smart contract only after user registers NFT to rent market contract.
Service is a service owner address list. Service owner can receive incentive or fee from rent market smart contract only after registering to rent market contract.
Token is a token smart contract which can be used for service. User can pay or rent NFT with this token. Only registered token can be used.
rentNFT function will rent a NFT by nftAddress, tokenId, and serviceAddress.
Parameter
nftAddress (address)
tokenId (uint256)
serviceAddress (address)
Return
success (bool)
This function will return a searched NFT data by nftAddress and tokenId.
Parameter
nftAddress (address)
tokenId (uint256)
Response
nftAddress (address)
tokenId (uint256)
rentFee (uint256)
feeTokenAddress (address)
rentFeeByToken (uint256)
rentDuration (uint256)
This function will return all registered NFT data.
Response (array)
nftAddress (address)
tokenId (uint256)
rentFee (uint256)
feeTokenAddress (address)
rentFeeByToken (uint256)
rentDuration (uint256)
This function will return rent NFT data by nftAddress and tokenId.
Response
nftAddress (address)
tokenId (uint256)
rentFee (uint256)
feeTokenAddress (address)
rentFeeByToken (uint256)
isRentByToken (bool)
rentDuration (uint256)
renterAddress (address)
renteeAddress (address)
serviceAddress (address)
rentStartTimestamp (uint256)
This function will return all rent NFT data.
Response (array)
nftAddress (address)
tokenId (uint256)
rentFee (uint256)
feeTokenAddress (address)
rentFeeByToken (uint256)
isRentByToken (bool)
rentDuration (uint256)
renterAddress (address)
renteeAddress (address)
serviceAddress (address)
rentStartTimestamp (uint256)
This function will register a NFT data by nftAddress and tokenId.
Parameter
nftAddress (address)
tokenId (uint256)
Response
success (bool)
rentNFTByToken function will rent a NFT by nftAddress, tokenId, and serviceAddress with token.
Parameter
nftAddress (address)
tokenId (uint256)
serviceAddress (address)
deadline (uint256)
v (uint8)
r (byte)
s (byte)