useDelayedRevealLazyMint
Lazy mint NFTs with delayed reveal
Example
const Component = () => {
const { contract } = useContract("{{contract_address}}");
const {
mutate: delayedRevealLazyMint,
isLoading,
error,
} = useDelayedRevealLazyMint(contract);
if (error) {
console.error("failed to lazy mint NFT", error);
}
return (
<button
disabled={isLoading}
onClick={() =>
delayedRevealLazyMint({ metadatas: [{ name: "My NFT!" }] })
}
>
Delayed Reveal Lazy mint NFT!
</button>
);
};
Parameters
Returns
a mutation object that can be used to lazy mint a batch of NFTs