Request form
ERC721 NFT Sale with pausable transfers
  • NFT
  • Sale
  • ERC721
  • Pausable
  • No-Code Deploy
  • Docs
    Source
    ChefGPT

    ERC721 NFT Sale with pausable transfers

    Pausable ERC721 NFT, including: -Built-in sale with an adjustable price. -Reserve function for the owner to mint free NFTs. -Owner to pause or unpause NFT transfers. -Fixed maximum supply.

    approve(address,uint256) :
    See {IERC721-approve}.
    balanceOf(address) :
    See {IERC721-balanceOf}.
    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}.
    pause() :
    Pauses the NFT, preventing any transfers. Only callable by the contract owner.
    paused() :
    Returns true if the contract is paused, and false otherwise.
    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.
    unpause() :
    Unpauses the NFT, allowing transfers to occur again. Only callable by the contract owner.
    withdraw() :
    A way for the owner to withdraw all proceeds from the sale.
    nft-sale-with-pausable-transfers.sol
    ERC721.sol
    Pausable.sol
    Ownable.sol
    ERC721Enumerable.sol
    IERC721.sol
    IERC721Receiver.sol
    IERC721Metadata.sol
    Address.sol
    Context.sol
    Strings.sol
    ERC165.sol
    IERC165.sol
    IERC721Enumerable.sol
    ABI:
    Bytecode:

    83 downloads

    Solidity Version

    0.8.12

    Creator

    Cookbook
    Cookbook / ERC721 NFT Sale with pausable transfers
  • NFT
  • Sale
  • ERC721
  • Pausable
  • No-Code Deploy
  • Docs
    Source
    ChefGPT
    Expand
    Share

    ERC721 NFT Sale with pausable transfers

    Pausable ERC721 NFT, including: -Built-in sale with an adjustable price. -Reserve function for the owner to mint free NFTs. -Owner to pause or unpause NFT transfers. -Fixed maximum supply.

    approve(address,uint256) :
    See {IERC721-approve}.
    balanceOf(address) :
    See {IERC721-balanceOf}.
    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}.
    pause() :
    Pauses the NFT, preventing any transfers. Only callable by the contract owner.
    paused() :
    Returns true if the contract is paused, and false otherwise.
    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.
    unpause() :
    Unpauses the NFT, allowing transfers to occur again. Only callable by the contract owner.
    withdraw() :
    A way for the owner to withdraw all proceeds from the sale.
    nft-sale-with-pausable-transfers.sol
    ERC721.sol
    Pausable.sol
    Ownable.sol
    ERC721Enumerable.sol
    IERC721.sol
    IERC721Receiver.sol
    IERC721Metadata.sol
    Address.sol
    Context.sol
    Strings.sol
    ERC165.sol
    IERC165.sol
    IERC721Enumerable.sol
    ABI:
    Bytecode:

    Get Cookin'
    star icon83

    83 downloads

    Solidity Version

    0.8.12

    Creator

    Cookbook