Preparing search index...
The search index is not available API References
Class CandyMachineGuardsClient
Properties
Protected Readonly metaplex
Methods
serialize Settings
serialize Settings< T > ( guards: Partial < T > , groups?: { label: string ; guards: Partial < T > ; } [] , programs?: Program [] ) : Buffer
Parameters
guards: Partial < T >
groups: { label: string ; guards: Partial < T > ; } [] = []
programs: Program [] = []
Returns Buffer
deserialize Settings
deserialize Settings< T > ( buffer: Buffer , program?: string | PublicKey | CandyGuardProgram ) : { guards: T ; groups: { label: string ; guards: T ; } [] ; }
Returns { guards: T ; groups: { label: string ; guards: T ; } [] ; }
guards: T
groups: { label: string ; guards: T ; } []
resolve Group Settings
resolve Group Settings< T > ( guards: T , groups?: { label: string ; guards: T ; } [] , groupLabel: Option < string > ) : T
Parameters
guards: T
groups: { label: string ; guards: T ; } [] = []
groupLabel: Option < string >
Returns T
parse Mint Settings
parse Mint Settings< Settings , MintSettings > ( candyMachine: PublicKey , candyGuard: CandyGuard < Settings > , owner: PublicKey , payer: Signer , mint: Signer , guardMintSettings: Partial < MintSettings > , groupLabel: Option < string > , programs?: Program [] ) : { arguments: Buffer ; accountMetas: AccountMeta [] ; signers: Signer [] ; }
Parameters
candyGuard: CandyGuard < Settings >
guardMintSettings: Partial < MintSettings >
groupLabel: Option < string >
programs: Program [] = []
Returns { arguments: Buffer ; accountMetas: AccountMeta [] ; signers: Signer [] ; }
arguments: Buffer
account Metas: AccountMeta []
parse Route Settings
parse Route Settings< Guard , Settings , RouteSettings > ( candyMachine: PublicKey , candyGuard: CandyGuard < Settings > , payer: Signer , guard: Guard , routeSettings: RouteSettings [ Guard ] , groupLabel: Option < string > , programs?: Program [] ) : { arguments: Buffer ; accountMetas: AccountMeta [] ; signers: Signer [] ; }
Parameters
candyGuard: CandyGuard < Settings >
guard: Guard
routeSettings: RouteSettings [ Guard ]
groupLabel: Option < string >
programs: Program [] = []
Returns { arguments: Buffer ; accountMetas: AccountMeta [] ; signers: Signer [] ; }
arguments: Buffer
account Metas: AccountMeta []
This client enables us to register custom guards from custom Candy Guard programs and interact with them.
See
CandyGuardClient