DOCS

useEditionDrop

Hook for getting an instance of an EditionDrop contract. This contract is used to interface with ERC1155 compliant NFTs that can be lazily minted.

Example

import { useContract } from '@thirdweb-dev/react'

export default function Component() {
  const { contract } = useContract("<YOUR-CONTRACT-ADDRESS>", "edition-drop")

  // Now you can use the edition drop contract in the rest of the component

  // For example, this function will let the connected wallet claim a new NFT
  async function claim(tokenId, quantity) {
    await contract.claim(tokenId, quantity)
  }

  ...
}

Parameters

Returns