Class CandyMachinesV2Client

This is a client for the Candy Machine module.

It enables us to interact with the Candy Machine program in order to create, update and delete Candy Machines as well as mint from them.

You may access this client via the candyMachinesV2() method of your Metaplex instance.

const candyMachineV2Client = metaplex.candyMachinesV2();

Example

You can create a new Candy Machine with minimum input like so. By default, the current identity of the Metaplex instance will be the authority of the Candy Machine.

const { candyMachine } = await metaplex
.candyMachinesV2()
.create({
sellerFeeBasisPoints: 500, // 5% royalties
price: sol(1.3), // 1.3 SOL
itemsAvailable: toBigNumber(1000), // 1000 items available
};

See

CandyMachine The CandyMachine model

Hierarchy

  • CandyMachinesV2Client

Constructors

Properties

metaplex: Metaplex

Methods

Generated using TypeDoc