Skip to main content

Erc721.revealer property

Delayed reveal


// the real NFTs, these will be encrypted until you reveal them
const realNFTs = [
name: "Common NFT #1",
description: "Common NFT, one of many.",
image: fs.readFileSync("path/to/image.png"),
name: "Super Rare NFT #2",
description: "You got a Super Rare NFT!",
image: fs.readFileSync("path/to/image.png"),
// A placeholder NFT that people will get immediately in their wallet, and will be converted to the real NFT at reveal time
const placeholderNFT = {
name: "Hidden NFT",
description: "Will be revealed next week!",
// Create and encrypt the NFTs
await contract.erc721.revealer.createDelayedRevealBatch(
"my secret password",
// Whenever you're ready, reveal your NFTs at any time
const batchId = 0; // the batch to reveal
await contract.erc721.revealer.reveal(batchId, "my secret password");


get revealer(): import("./delayed-reveal").DelayedReveal<import("../../types/eips").BaseDelayedRevealERC721>;


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