Protected
Readonly
metaplexCreates a brand new Candy Machine.
const transactionBuilder = await metaplex
.candyMachinesV2()
.builders()
.create({
sellerFeeBasisPoints: 500, // 5% royalties
price: sol(1.3), // 1.3 SOL
itemsAvailable: toBigNumber(1000), // 1000 items available
});
Optional
options: TransactionBuilderOptionsDeletes an existing Candy Machine.
const transactionBuilder = metaplex
.candyMachinesV2()
.builders()
.delete({
candyMachine: { address, collectionMintAddress },
});
Optional
options: TransactionBuilderOptionsInsert items into an existing Candy Machine.
const transactionBuilder = metaplex
.candyMachines()
.builders()
.insertItems({ candyMachine, items });
Optional
options: TransactionBuilderOptionsMint an NFT from an existing Candy Machine.
const transactionBuilder = await metaplex
.candyMachinesV2()
.builders()
.mint({ candyMachine });
Optional
options: TransactionBuilderOptionsUpdates an existing Candy Machine.
const transactionBuilder = metaplex
.candyMachinesV2()
.builders()
.update({
candyMachine: { address, walletAddress, collectionMintAddress },
newData: {...}, // Updates the provided data.
});
Optional
options: TransactionBuilderOptionsGenerated using TypeDoc
This client allows you to access the underlying Transaction Builders for the write operations of the Candy Machine module.
See
CandyMachinesV2Client