Skip to main content

useEditionDrop() function

Warning: This API is now obsolete.

This hook is deprecated and will be removed in a future major version. You should use instead.

- const editionDrop = useEditionDrop("0x1234...");
+ const editionDrop = useContract("0x1234...", "edition-drop").contract;

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


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)



export declare function useEditionDrop(
contractAddress: RequiredParam<string>,
): import("@thirdweb-dev/sdk").EditionDrop | undefined;


contractAddressRequiredParam<string>the address of the Edition Drop contract, found in your thirdweb dashboard


import("@thirdweb-dev/sdk").EditionDrop | undefined