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
.
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.