Optional
newThe mint account to create as a Signer. This expects a brand new Keypair with no associated account.
Keypair.generate()
Optional
newThe owner of the minted NFT.
metaplex.identity().publicKey
Optional
newThe new token account to create as a Signer.
This property would typically be ignored as, by default, it will create a
associated token account from the newOwner
and newMint
properties.
When provided, the newOwner
property will be ignored.
associated token address of newOwner
and newMint
.
Optional
payerThe token account that should pay for the minted NFT.
This is only relevant when the Candy Machine uses a mint treasury (i.e. payments are made using SPL tokens and not SOL).
associated token address of payer
and
candyMachine.tokenMintAddress
.
Optional
whitelistThe token account that contains whitelist tokens.
This is only relevant when the Candy Machine uses whitelist settings.
associated token address of payer
and
candyMachine.whitelistMintSettings.mint
.
Optional
createA key to distinguish the instruction that creates the mint account of the NFT.
Optional
initializeA key to distinguish the instruction that initializes the mint account of the NFT.
Optional
createA key to distinguish the instruction that creates the associated token account of the NFT.
Optional
createA key to distinguish the instruction that creates the token account of the NFT.
Optional
initializeA key to distinguish the instruction that initializes the token account of the NFT.
Optional
mintA key to distinguish the instruction that mints the one token.
Optional
mintA key to distinguish the instruction that mints the NFT.
Optional
setA key to distinguish the instruction that sets the collection on the minted NFT.
Generated using TypeDoc
The Candy Machine to mint from. We only need a subset of the
CandyMachine
model but we need enough information regarding its settings to know how to mint from it.This includes, its wallet address, its item statistics, it live date, its whitelist settings, etc.