Type alias InsertItemsToCandyMachineV2BuilderParams

InsertItemsToCandyMachineV2BuilderParams: {
    candyMachine: Pick<CandyMachineV2, "address" | "itemsAvailable" | "itemsLoaded">;
    items: CandyMachineV2Item[];
    authority?: undefined | Signer;
    index?: undefined | BigNumber;
    instructionKey?: undefined | string;
}

Type declaration

  • candyMachine: Pick<CandyMachineV2, "address" | "itemsAvailable" | "itemsLoaded">

    The Candy Machine to insert items into.

    We only need a subset of the CandyMachine model. We need its address and the number of items loaded and to be loaded so we can check if the operation is valid.

  • items: CandyMachineV2Item[]

    The items to insert into the candy machine.

  • Optional authority?: undefined | Signer

    The Signer authorized to update the candy machine.

    Default Value

    metaplex.identity()

  • Optional index?: undefined | BigNumber

    The index we should use to insert the new items. This refers to the index of the first item to insert and the others will follow after it.

    By defaults, this uses the itemsLoaded property so items are simply appended to the current items.

    Default Value

    candyMachine.itemsLoaded

  • Optional instructionKey?: undefined | string

Generated using TypeDoc