Request form
Cookbook may introduce a token in the future. Share and contribute to be eligible for future airdrops.
close icon
relevant tag icon
NFT Sale with burnable NFTs and wallet cap
copy icon
Cookbook
• version 1.0.3
NFT
Sale
ERC721
Limited
Whitelist
Burnable
Deployable

NFT Sale with burnable NFTs and wallet cap

ERC721 NFT with the following features: -Built-in sale with an adjustable price. -Wallets can only purchase a limited number of NFTs during the sale. -Reserve function for the owner to mint free NFTs. -Fixed maximum supply. -Methods that allow users to burn their NFTs. This directly decreases total supply.

*Visit desktop site to download or deploy

Version

1.0.3

Creator

Cookbook

Recent Use

🍞 0xD029 downloaded
🥐 0x77CA downloaded
🥖 0x6b9E downloaded
🥨 0xb6F0 deployed
🥯 0x84B2 downloaded
🥞 0x84B2 deployed
🧀 0x7015 deployed

Last Publish

9/6/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}.
burn(uint256) :
Burns `tokenId`. See {ERC721-_burn}. Requirements: - The caller must own `tokenId` or be an approved operator.
getApproved(uint256) :
See {IERC721-getApproved}.
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`, that the user's `walletLimit` will not be exceeded, 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}.
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 specifc 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}.
setApprovalForAll(address,bool) :
See {IERC721-setApprovalForAll}.
setBaseURI(string) :
Updates the baseURI that will be used to retrieve NFT metadata.
setCurrentPrice(uint256) :
Sets the price of each NFT during the initial sale.
setSaleIsActive(bool) :
Sets whether or not the NFT sale is active.
setWalletLimit(uint256) :
Sets the maximum number of NFTs that can be sold to a specific address.
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) :
See {IERC721Metadata-tokenURI}.
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.
withdraw() :
A way for the owner to withdraw all proceeds from the sale.

Get Cookin'
share iconShare

copy iconNo-Code Deploy
copy iconDownload Source
copy iconnpx cookbookdev i nft-sale-with-burnable-nfts-and-wallet-cap
copy icon

Bytecode

Download

Verification

Download

Recent Use

🍞 0xD029 downloaded
🥐 0x77CA downloaded
🥖 0x6b9E downloaded
🥨 0xb6F0 deployed
🥯 0x84B2 downloaded
🥞 0x84B2 deployed
🧀 0x7015 deployed

Last Publish

9/6/2022

Solidity Compiler

0.8.12+commit.f00d7308

Version

1.0.3

Creator

Cookbook

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