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

Parameters

Returns

The prepared transaction to send.