createDelayedRevealBatch

Creates a batch of encrypted NFTs that can be revealed at a later time.

Example

import { createDelayedRevealBatch } from "thirdweb/extensions/erc721";
const placeholderNFT = {
name: "Hidden NFT",
description: "Will be revealed next week!"
};
const realNFTs = [{
name: "Common NFT #1",
description: "Common NFT, one of many.",
image: ipfs://...,
}, {
name: "Super Rare NFT #2",
description: "You got a Super Rare NFT!",
image: ipfs://...,
}];
const transaction = createDelayedRevealBatch({
contract,
placeholderMetadata: placeholderNFT,
metadata: realNFTs,
password: "password123",
});
const { transactionHash } = await sendTransaction({ transaction, account });
function createDelayedRevealBatch(

Parameters

{CreateDelayedRevealBatchParams} - The delayed reveal options.

Type

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

The prepared transaction to send.