the address of the Edition Drop contract, found in your thirdweb dashboard
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)
  }
  ...
}
This hook is deprecated and will be removed in a future major version. You should use useContract instead.
- const editionDrop = useEditionDrop("0x1234...");
+ const editionDrop = useContract("0x1234...", "edition-drop").contract;
Generated using TypeDoc
Hook for getting an instance of an
EditionDropcontract. This contract is used to interface with ERC1155 compliant NFTs that can be lazily minted.