relevant tag icon
NFT Sale with burnable NFTs
copy icon
Cookbook
• version 1.0.8
NFT
Sale
ERC721
Burnable
Deployable

NFT Sale with burnable NFTs

ERC721 NFT with the following features: -Built-in sale with an adjustable price. -Reserve function for the owner to mint free NFTs. -Fixed maximum supply. -Burn feature that allow users to burn their NFTs. This directly decreases total supply.

*Visit desktop site to download or deploy

Version

1.0.8

Creator

Cookbook

Recent Use

🍞 0x4897 saved
🥐 0x77CA downloaded
🥖 0x46a8 deployed
🥨 0x46a8 saved
🥯 0x6C39 deployed
🥞 0x93C7 deployed

Last Publish

9/6/2022
Any contract you deploy is yours.
Fully owned and controlled by your wallet.
Documentation
Source Code
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 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}.
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.
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
copy icon

Bytecode

Download

Verification

Download

Recent Use

🍞 0x4897 saved
🥐 0x77CA downloaded
🥖 0x46a8 deployed
🥨 0x46a8 saved
🥯 0x6C39 deployed
🥞 0x93C7 deployed

Last Publish

9/6/2022

Solidity Compiler

0.8.12+commit.f00d7308

Version

1.0.8

Creator

Cookbook

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