Request form
Cookbook may introduce a token in the future. Share and contribute to be eligible for future airdrops.
close icon
relevant tag icon
ERC721 NFT with Ongoing Subscription
copy icon
Cookbook
• version 1.0.0
NFT
Sale
ERC721
Whitelist
Subscription
Deployable

ERC721 NFT with Ongoing Subscription

ERC721 NFT with the following features: -Subscription where users must pay to keep their NFT active. -Reserve function for the owner to mint free NFTs. -Fixed maximum supply. -Optional whitelist so the owner can choose who is able to mint.

*Visit desktop site to download or deploy

Version

1.0.0

Creator

Cookbook

Recent Use

🍞 0x2D9d saved
🥐 0x84D5 saved
🥖 0x77CA downloaded
🥨 0x77CA saved
🥯 0x6724 downloaded
🥞 0x7379 downloaded
🧀 0x7379 downloaded
🍖 0x77eA downloaded
🍗 0x9dc2 saved
🥩 0xD31b downloaded

Last Publish

10/9/2022
Any contract you deploy is yours.
Fully owned and controlled by your wallet.
Documentation
Source Code
addManyToWhitelist(address[]) :
Adds an array of addresses to the NFT sale whitelist.
addToWhitelist(address) :
Adds an address to the NFT sale whitelist.
approve(address,uint256) :
See {IERC721-approve}.
balanceOf(address) :
See {IERC721-balanceOf}.
getApproved(uint256) :
See {IERC721-getApproved}.
isActive(uint256) :
Used to check if an NFT is active.
isApprovedForAll(address,address) :
See {IERC721-isApprovedForAll}.
mint(uint256) :
An external method for users to purchase and mint NFTs. Requires that the sale is active, that the whitelist is either inactive or the user is whitelisted, that the minted NFTs will not exceed the `MAX_SUPPLY`, and that a sufficient payable value is sent.
name() :
See {IERC721Metadata-name}.
owner() :
Returns the address of the current owner.
ownerOf(uint256) :
See {IERC721-ownerOf}.
ownerWithdraw() :
Allows the owner to withdraw subscription and sale proceeds.
refillSubscription(uint256) :
Refill the NFT's subscription.
removeFromWhitelist(address) :
Removes an address from the NFT sale whitelist.
renounceOwnership() :
Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.
reserve(uint256) :
A way for the owner to reserve a specific number of NFTs without having to interact with the sale.
safeTransferFrom(address,address,uint256) :
See {IERC721-safeTransferFrom}.
safeTransferFrom(address,address,uint256,bytes) :
See {IERC721-safeTransferFrom}.
setActiveURI(string) :
Sets the active NFT URI
setApprovalForAll(address,bool) :
See {IERC721-setApprovalForAll}.
setCurrentPrice(uint256) :
Sets the price of each NFT during the initial sale.
setInactiveURI(string) :
Sets the inactive NFT URI
setSaleIsActive(bool) :
Sets whether or not the NFT sale is active.
setSubscriptionPrice(uint256) :
Sets the subscription price.
setWhitelistActive(bool) :
Sets whether or not the NFT sale whitelist is active.
symbol() :
See {IERC721Metadata-symbol}.
tokenByIndex(uint256) :
See {IERC721Enumerable-tokenByIndex}.
tokenOfOwnerByIndex(address,uint256) :
See {IERC721Enumerable-tokenOfOwnerByIndex}.
tokenURI(uint256) :
Used to retrieve an NFT's URI.
totalSupply() :
See {IERC721Enumerable-totalSupply}.
transferFrom(address,address,uint256) :
See {IERC721-transferFrom}.
transferOwnership(address) :
Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.

Get Cookin'
share iconShare

copy iconNo-Code Deploy
copy iconDownload Source
copy iconnpx cookbookdev i nft-with-ongoing-subscription
copy icon

Bytecode

Download

Verification

Download

Recent Use

🍞 0x2D9d saved
🥐 0x84D5 saved
🥖 0x77CA downloaded
🥨 0x77CA saved
🥯 0x6724 downloaded
🥞 0x7379 downloaded
🧀 0x7379 downloaded
🍖 0x77eA downloaded
🍗 0x9dc2 saved
🥩 0xD31b downloaded

Last Publish

10/9/2022

Solidity Compiler

0.8.15+commit.e14f2714

Version

1.0.0

Creator

Cookbook

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