Type alias MintFromCandyMachineBuilderParams<Settings, MintSettings>

MintFromCandyMachineBuilderParams<Settings, MintSettings>: {
    candyMachine: Pick<CandyMachine<Settings>, "address" | "collectionMintAddress" | "candyGuard">;
    collectionUpdateAuthority: PublicKey;
    token?: undefined | Signer;
    owner?: undefined | PublicKey;
    mint?: undefined | Signer;
    mintAuthority?: undefined | Signer;
    guards?: undefined | Partial<MintSettings>;
    group?: undefined | Option<string>;
    createMintAccountInstructionKey?: undefined | string;
    initializeMintInstructionKey?: undefined | string;
    createAssociatedTokenAccountInstructionKey?: undefined | string;
    createTokenAccountInstructionKey?: undefined | string;
    initializeTokenInstructionKey?: undefined | string;
    mintTokensInstructionKey?: undefined | string;
    mintFromCandyMachineInstructionKey?: undefined | string;
}

Type Parameters

Type declaration

  • candyMachine: Pick<CandyMachine<Settings>, "address" | "collectionMintAddress" | "candyGuard">

    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 address, the address of its Collection NFT and, optionally, the Candy Guard account associated with it.

  • collectionUpdateAuthority: PublicKey

    The address of the update authority of the Collection NFT that is being assigned to each minted NFT.

  • Optional token?: undefined | Signer

    The 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 owner and mint properties.

    When provided, the owner property will be ignored.

    Default Value

    associated token address of owner and mint.

  • Optional owner?: undefined | PublicKey

    The owner of the minted NFT.

    Defaults to the wallet that is paying for it, i.e. payer.

    Default Value

    payer.publicKey

  • Optional mint?: undefined | Signer

    The mint account to create as a Signer. This expects a brand new Keypair with no associated account.

    Default Value

    Keypair.generate()

  • Optional mintAuthority?: undefined | Signer

    The authority that is allowed to mint NFTs from the Candy Machine.

    Default Value

    metaplex.identity() if the Candy Machine has no associated Candy Guard. Otherwise, this parameter will be ignored.

  • Optional guards?: undefined | Partial<MintSettings>

    Guard-specific data required to mint from the Candy Machine.

    Some guards require additional data to be provided at mint time. For instance, the allowList guard will require a Merkle proof ensuring the minting address is allowed to mint.

    You only need to provide configuration data for the guards that are set up within the group your are minting from.

    Default Value

    {}

  • Optional group?: undefined | Option<string>

    The label of the group to mint from.

    If groups are configured on the Candy Machine, you must specify a group label to mint from.

    When set to null it will mint using the default guards, provided no groups are configured.

    Default Value

    null

  • Optional createMintAccountInstructionKey?: undefined | string

    A key to distinguish the instruction that creates the mint account of the NFT.

  • Optional initializeMintInstructionKey?: undefined | string

    A key to distinguish the instruction that initializes the mint account of the NFT.

  • Optional createAssociatedTokenAccountInstructionKey?: undefined | string

    A key to distinguish the instruction that creates the associated token account of the NFT.

  • Optional createTokenAccountInstructionKey?: undefined | string

    A key to distinguish the instruction that creates the token account of the NFT.

  • Optional initializeTokenInstructionKey?: undefined | string

    A key to distinguish the instruction that initializes the token account of the NFT.

  • Optional mintTokensInstructionKey?: undefined | string

    A key to distinguish the instruction that mints the one token.

  • Optional mintFromCandyMachineInstructionKey?: undefined | string

    A key to distinguish the instruction that mints from the Candy Machine.

Generated using TypeDoc