DOCS

useRevealLazyMint

Reveal a batch of delayed reveal NFTs

Example

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>
  );
};

Parameters

Returns

a mutation object that can be used to reveal a batch of delayed reveal NFTs