Core Candy Machine
Theme

Available Guards

Core Candy Machine - Vanity Mint Guard

Overview

The Vanity Mint guard allows minting if the specified mint address matches a specific format. This guard basically allows to add a Proof of Work (POW) requirement where the user has to grind for a Public Key that matches the pattern.

If the minter does not use a matching mint address, minting will fail.

Guard Settings

The Vanity Mint guard contains the following settings:

  • Regular Expression: A Regex that the mint address has to match. E.g. if you want all mints to start with string mplx you could use this as regex Parameter.

Ideas for regular expressions that can be used for example could be:

  • Starting with a specific pattern: ^mplx
  • Ending with a specific pattern: mplx$
  • Starting and Ending with a specific pattern: ^mplx*mplx$
  • Exactly matches a specific pattern: ^mplx1111111111111111111111111111111111111mplx$ The string mplx would need to be replaced with the expected characters.

Set up a Candy Machine using the Vanity Mint Guard where the mint starts and ends with `mplx`

create(umi, {
  // ...
  guards: {
    vanityMint: some({
      regex: "^mplx*mplx$",
    }),
  },
});

API References: create, VanityMint

Mint Settings

The Vanity Mint guard does not require mint settings. It expects the mint address to match.

Route Instruction

The Vanity Mint guard does not support the route instruction.

Previous
Token2022 Payment