Skip to main content

Start Date

Overview

The Start Date guard determines the start date of the mint. Before this date, minting is not allowed.

CandyMachinesV3-GuardsStartDate.png

Guard Settings

The Start Date guard contains the following settings:

  • Date: The date before which minting is not allowed.

JS SDK

Here’s how we can set up a Candy Machine using the Start Date guard via the JS SDK.

import { toDateTime } from '@metaplex-foundation/js';

const { candyMachine } = await metaplex.candyMachines().create({
// ...
guards: {
startDate: {
date: toDateTime("2022-10-24T15:30:00.000Z"),
},
},
});

API References: Operation, Input, Output, Transaction Builder, Guard Settings.

Mint Settings

The Start Date guard does not need Mint Settings.

Route Instruction

The Start Date guard does not support the route instruction.