Available Guards

End Date Guard

Last updated March 10, 2026

The End Date guard sets a deadline after which minting from a Core Candy Machine is no longer allowed.

Overview

The End Date guard specifies a date to end the mint. After this date, minting is no longer allowed.

Guard Settings

The End Date guard contains the following settings:

  • Date: The date after which minting is no longer allowed.

Set up a Candy Machine using the End Date guard

import { dateTime } from "@metaplex-foundation/umi";
create(umi, {
// ...
guards: {
endDate: some({ date: dateTime("2022-01-24T15:30:00.000Z") }),
},
});

API References: create, EndDate

Mint Settings

The End Date guard does not need Mint Settings.

Route Instruction

The End Date guard does not support the route instruction.

Notes

  • The End Date guard only prevents new mints after the configured timestamp. It does not affect Assets that were already minted.
  • To restrict minting to a specific window, combine the End Date guard with the Start Date guard.
  • The date value must be a valid UTC timestamp string passed through the dateTime helper from Umi.
Previous
Bot Tax