Retrieves the batches available to reveal in an NFT contract.
import { getBatchesToReveal } from "thirdweb/extensions/erc721"; const batches = await getBatchesToReveal({ contract: contract }); const { transactionHash } = await sendTransaction({ transaction, account,});
function getBatchesToReveal( options: BaseTransactionOptions,): Promise<Array<BatchToReveal>>;
{BaseTransactionOptions} - The transaction options.
let options: { contract: ThirdwebContract<abi> } & T;
let returnType: { batchId: bigint; batchUri: string; placeholderMetadata: NFTMetadata;};
A promise resolving to an array of unrevealed batches.