Docs

getBatchesToReveal

Retrieves the batches available to reveal in an NFT contract.

Example

import { getBatchesToReveal } from "thirdweb/extensions/erc721";
const batches = await getBatchesToReveal({ contract: contract });
const { transactionHash } = await sendTransaction({
transaction,
account,
});

Parameters

Returns

A promise resolving to an array of unrevealed batches.