Beta 
an instance of a DropContract
a mutation object that can be used to claim a NFT to the wallet specificed in the params
const Component = () => {
  const { contract } = useContract("{{contract_address}}");
  const {
    mutate: claimNFT,
    isLoading,
    error,
  } = useClaimNFT(contract);
  if (error) {
    console.error("failed to claim nft", error);
  }
  return (
    <button
      disabled={isLoading}
      onClick={() => claimNFT({ to: "{{wallet_address}}", quantity: 1 })}
    >
      Claim NFT!
    </button>
  );
};
ERC721Claimable | ERC1155Claimable | ERC721ClaimPhasesV2 | ERC721ClaimPhasesV1 | ERC721ClaimConditionsV2 | ERC721ClaimConditionsV1 | ERC1155ClaimPhasesV2 | ERC1155ClaimPhasesV1 | ERC1155ClaimConditionsV2 | ERC1155ClaimConditionsV1
Generated using TypeDoc
Claim an NFT to a specific wallet