Skip to main content

useSignatureDrop() function

Hook for getting an instance of an SignatureDrop contract. This contract is meant to interface with ERC721 compliant NFTs that can be lazily minted.

Example

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

export default function Component() {
const signatureDrop = useSignatureDrop("<YOUR-CONTRACT-ADDRESS>")

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

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

...
}

Signature:

export declare function useSignatureDrop(
contractAddress?: string,
): SignatureDrop | undefined;

Parameters

ParameterTypeDescription
contractAddressstring(Optional) the address of the NFT Drop contract, found in your thirdweb dashboard

Returns:

SignatureDrop | undefined