Request form
Cookbook may introduce a token in the future. Share and contribute to be eligible for future airdrops.
close icon
relevant tag icon
Rentable NFT (EIP4907)
copy icon
EmojiDao
• version 1.0.0
ERC721
EIP4907
Rentable
Deployable

Rentable NFT (EIP4907)

EIP-4907 is an extension of EIP-721. It proposes an additional role (user) and a valid duration indicator (expires). It allows users and developers to manage the use right more simply and efficiently.

*Visit desktop site to download or deploy

Version

1.0.0

Creator

EmojiDao

Recent Use

🍞 0xB5AB downloaded
🥐 0x67e0 downloaded
🥖 0x0eF9 deployed

Last Publish

12/12/2022
Any contract you deploy is yours.
Fully owned and controlled by your wallet.
Documentation
Source Code
approve(address,uint256) :
Approves an address to use a specific token
balanceOf(address) :
Returns the balance of an address
getApproved(uint256) :
Returns the account approved for tokenId token
isApprovedForAll(address,address) :
Returns if the operator is allowed to manage all of the assets of owner.
name() :
Returns the NFT name.
ownerOf(uint256) :
Returns the owner of a tokenID
safeTransferFrom(address,address,uint256) :
Transfers a token id from one address to another
safeTransferFrom(address,address,uint256,bytes) :
Transfers a token id from one address to another, and calls a function using the supplied bytes.
setApprovalForAll(address,bool) :
Gives an address approval for all owned NFTs
setUser(uint256,address,uint64) :
@notice set the user and expires of a NFT @dev The zero address indicates there is no user @param user The new user of the NFT @param expires UNIX timestamp, The new user could use the NFT before expires
supportsInterface(bytes4) :
Returns whether or not a specific interface is supported.
symbol() :
Returns the NFT symbol
tokenURI(uint256) :
Returns the base tokenURI for the NFTq
transferFrom(address,address,uint256) :
Transfers a token id from one address to another
userExpires(uint256) :
@notice Get the user expires of an NFT @dev The zero value indicates that there is no user @param tokenId The NFT to get the user expires for @return The user expires for this NFT
userOf(uint256) :
@notice Get the user address of an NFT @dev The zero address indicates that there is no user or the user is expired @param tokenId The NFT to get the user address for @return The user address for this NFT

Get Cookin'
share iconShare

copy iconNo-Code Deploy
copy iconDownload Source
copy iconnpx cookbookdev i rentable-nft
copy icon

Bytecode

Download

Verification

Download

Recent Use

🍞 0xB5AB downloaded
🥐 0x67e0 downloaded
🥖 0x0eF9 deployed

Last Publish

12/12/2022

Solidity Compiler

v0.8.17+commit.8df45f5f

Version

1.0.0

Creator

EmojiDao

Cookbook is free.
Any contract you deploy is yours.
Your contract is owned and controlled by you.