Contract Functions

SignatureDrop

A contract for minting NFTs with a signature-based whitelist.

Version 2.4.6

SignatureDrop Contract

This contract allows you to mint NFTs using a signature-based whitelist. It provides a secure and efficient way to manage a limited edition NFT drop, ensuring only authorized addresses can mint.

Features

  • Signature-based whitelist: Allows you to control who can mint NFTs by verifying signatures.
  • Max supply: Sets a limit on the total number of NFTs that can be minted.
  • Minting price: Defines the cost of minting each NFT.
  • Public minting: Enables minting of NFTs after the whitelist period.
  • Usage

    To use this contract, you'll need to:

  • Deploy the contract and set the initial parameters.
  • Generate signatures for authorized addresses using a private key.
  • Whitelist addresses using the signatures.
  • Enable public minting once the whitelist period is over.
  • Implementation Details

    The contract implements a set of functions for managing the whitelist, minting NFTs, and updating contract parameters.

    Best Practices

  • Securely store your private key for signature generation.
  • Test the contract thoroughly before deploying to a live network.
  • Consider using a gas optimization library for improved efficiency.
  • Regularly audit the code for vulnerabilities.
  • Functions

    constructor

    constructor(address _signer, string _uri, uint256 _maxSupply, uint256 _mintPrice)

    setBaseURI

    setBaseURI(string _baseURI)

    mint

    mint(bytes _signature)

    publicMint

    publicMint()

    togglePublicMint

    togglePublicMint()

    withdraw

    withdraw()
    Ask about contract functions, security, or implementation details

    Press Enter to send your query

    Resources

    Source Code

    1