Beta
an instance of a DropContract
Optional
onProgress: ((progress) => void)an optional callback that will be called with the progress of the upload
a mutation object that can be used to lazy mint a batch of NFTs
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>
);
};
ERC721Revealable | ERC1155Revealable
Generated using TypeDoc
Lazy mint NFTs with delayed reveal