Beta
an instance of a RevealableContract
a mutation object that can be used to reveal a batch of delayed reveal NFTs
const Component = () => {
const { contract } = useContract("{{contract_address}}");
const {
mutate: revealLazyMint,
isLoading,
error,
} = useRevealLazyMint(contract);
if (error) {
console.error("failed to reveal batch", error);
}
return (
<button
disabled={isLoading}
onClick={() => revealLazyMint({ batchId: "0", password: "my-password" })}
>
Reveal batch!
</button>
);
};
ERC721Revealable | ERC1155Revealable
Generated using TypeDoc
Reveal a batch of delayed reveal NFTs