Beta
an instance of a DropContract
Optional
tokenId: BigNumberisha mutation object that can be used to set claim conditions
const Component = () => {
const { contract } = useContract("{{contract_address}}");
const {
mutate: setClaimConditions,
isLoading,
error,
} = useSetClaimConditions(contract);
if (error) {
console.error("failed to set claim conditions", error);
}
return (
<button
disabled={isLoading}
onClick={() => setClaimConditions({ phases: [{ price: 2, maxClaimableSupply: 100 }] })}
>
Set Claim Conditions!
</button>
);
};
ERC20ClaimPhasesV2 | ERC20ClaimPhasesV1 | ERC20ClaimConditionsV2 | ERC20ClaimConditionsV1 | ERC721ClaimPhasesV2 | ERC721ClaimPhasesV1 | ERC721ClaimConditionsV2 | ERC721ClaimConditionsV1 | ERC1155ClaimPhasesV2 | ERC1155ClaimPhasesV1 | ERC1155ClaimConditionsV2 | ERC1155ClaimConditionsV1
Generated using TypeDoc
Set claim conditions