Type alias UpdateCandyMachineBuilderParams<T>

UpdateCandyMachineBuilderParams<T>: {
    candyMachine: PublicKey | CandyMachine<T>;
    symbol?: undefined | string;
    collection?: undefined | {
        address: PublicKey;
        updateAuthority: Signer;
        currentCollectionAddress?: PublicKey;
    };
    creators?: undefined | Omit<Creator, "verified">[];
    sellerFeeBasisPoints?: undefined | number;
    isMutable?: undefined | boolean;
    authority?: undefined | Signer;
    newAuthority?: undefined | PublicKey;
    candyGuard?: undefined | PublicKey;
    guards?: undefined | Partial<T>;
    groups?: undefined | {
        label: string;
        guards: Partial<T>;
    }[];
    itemsAvailable?: undefined | BigNumber;
    maxEditionSupply?: undefined | BigNumber;
    itemSettings?: undefined | CandyMachineConfigLineSettings | CandyMachineHiddenSettings;
    candyGuardAuthority?: undefined | Signer;
    newMintAuthority?: undefined | Signer;
    newCandyGuardAuthority?: undefined | PublicKey;
    updateDataInstructionKey?: undefined | string;
    setCollectionInstructionKey?: undefined | string;
    updateCandyGuardInstructionKey?: undefined | string;
    setMintAuthorityInstructionKey?: undefined | string;
    setAuthorityInstructionKey?: undefined | string;
    setCandyGuardAuthorityInstructionKey?: undefined | string;
}

Type Parameters

Type declaration

  • candyMachine: PublicKey | CandyMachine<T>

    The Candy Machine to update.

    This can either be a Candy Machine instance or its address. When passing its address, you will need to provide enough input so the SDK knows what to update.

    For instance, if you only want to update the creators array of the Candy Machine, you will also need to provide all other Candy Machine data such as its symbol, its sellerFeeBasisPoints, etc.

    That's because the program requires all data to be provided at once when updating. The SDK will raise an error if you don't provide enough data letting you know what's missing.

    Alternatively, if you provide a Candy Machine instance, the SDK will use its current data to fill all the gaps so you can focus on what you want to update.

  • Optional symbol?: undefined | string

    The symbol to use when minting NFTs (e.g. "MYPROJECT")

    This can be any string up to 10 bytes and can be made optional by providing an empty string.

    Default Value

    Defaults to not being updated.

  • Optional collection?: undefined | {
        address: PublicKey;
        updateAuthority: Signer;
        currentCollectionAddress?: PublicKey;
    }

    The Collection NFT that all NFTs minted from this Candy Machine should be part of. This must include its address and the update authority as a Signer.

    If the candyMachine attribute is passed as a PublicKey, you will also need to provide the mint address of the current collection that will be overriden.

    Default Value

    Defaults to not being updated.

  • Optional creators?: undefined | Omit<Creator, "verified">[]

    Array of creators that should be set on minted NFTs.

    Default Value

    Defaults to not being updated.

    See

    Creator

  • Optional sellerFeeBasisPoints?: undefined | number

    The royalties that should be set on minted NFTs in basis points.

    Default Value

    Defaults to not being updated.

  • Optional isMutable?: undefined | boolean

    Whether the minted NFTs should be mutable or not.

    We recommend setting this to true unless you have a specific reason. You can always make NFTs immutable in the future but you cannot make immutable NFTs mutable ever again.

    Default Value

    Defaults to not being updated.

  • Optional authority?: undefined | Signer

    The Signer authorized to update the Candy Machine.

    Default Value

    metaplex.identity()

  • Optional newAuthority?: undefined | PublicKey

    The new authority that will be allowed to manage the Candy Machine. This includes updating its data, authorities, inserting items, etc.

    Warning: This means the current authority Signer will no longer be able to manage the Candy Machine.

    Note that if your Candy Machine has a Candy Guard associated to it, you might want to also update the Candy Guard's authority using the newCandyGuardAuthority parameter.

    Default Value

    Defaults to not being updated.

  • Optional candyGuard?: undefined | PublicKey

    The address of the Candy Guard associated to the Candy Machine, if any. This is only required if candyMachine is provided as an address and you are trying to update the guards or groups parameters.

    Default Value

    candyMachine.candyGuard?.address

  • Optional guards?: undefined | Partial<T>

    The settings of all guards we wish to activate.

    Note that this will override the existing guards settings so you must provide all guards you wish to activate.

    Any guard not provided or set to null will be disabled.

    Default Value

    Defaults to not being updated.

  • Optional groups?: undefined | {
        label: string;
        guards: Partial<T>;
    }[]

    This parameter allows us to create multiple minting groups that have their own set of requirements — i.e. guards.

    Note that this will override the existing groups settings so you must provide all groups and guards you wish to activate.

    When groups are provided, the guards parameter becomes a set of default guards that will be applied to all groups. If a specific group enables a guard that is also present in the default guards, the group's guard will override the default guard.

    For each group, any guard not provided or set to null will be disabled.

    You may disable groups by providing an empty array [].

    Default Value

    Defaults to not being updated.

  • Optional itemsAvailable?: undefined | BigNumber

    The total number of items availble in the Candy Machine, minted or not.

    Default Value

    Defaults to not being updated.

  • Optional maxEditionSupply?: undefined | BigNumber

    The maximum number of editions that can be printed from the minted NFTs.

    For most use cases, you'd want to set this to 0 to prevent minted NFTs to be printed multiple times.

    Note that you cannot set this to null which means unlimited editions are not supported by the Candy Machine program.

    Default Value

    Defaults to not being updated.

  • Optional itemSettings?: undefined | CandyMachineConfigLineSettings | CandyMachineHiddenSettings

    Settings related to the Candy Machine's items.

    These can either be inserted manually within the Candy Machine or they can be infered from a set of hidden settings.

    • If type is hidden, the Candy Machine is using hidden settings.
    • If type is configLines, the Candy Machine is using config line settings.

    Default Value

    Defaults to not being updated.

    See

  • Optional candyGuardAuthority?: undefined | Signer

    The Signer authorized to update the associated Candy Guard, if any. This is typically the same as the Candy Machine authority.

    Default Value

    Defaults to the authority parameter.

  • Optional newMintAuthority?: undefined | Signer

    The new authority that will be able to mint from this Candy Machine.

    This must be a Signer to ensure Candy Guards are not used to mint from unexpected Candy Machines as some of its guards could have side effects.

    Default Value

    Defaults to not being updated.

  • Optional newCandyGuardAuthority?: undefined | PublicKey

    The new authority that will be allowed to manage the Candy Guard account associated with the Candy Machine.

    Warning: This means the current Candy Guard authority Signer will no longer be able to manage the Candy Guard account.

    Default Value

    Defaults to not being updated.

  • Optional updateDataInstructionKey?: undefined | string

    A key to distinguish the instruction that updates the Candy Machine data.

  • Optional setCollectionInstructionKey?: undefined | string

    A key to distinguish the instruction that updates the Candy Machine collection.

  • Optional updateCandyGuardInstructionKey?: undefined | string

    A key to distinguish the instruction that updates the associated Candy Guard, if any.

  • Optional setMintAuthorityInstructionKey?: undefined | string

    A key to distinguish the instruction that updates the Candy Machine's mint authority.

  • Optional setAuthorityInstructionKey?: undefined | string

    A key to distinguish the instruction that updates the Candy Machine's authority.

  • Optional setCandyGuardAuthorityInstructionKey?: undefined | string

    A key to distinguish the instruction that updates the Candy Guard's authority.

Generated using TypeDoc