FreezeSolPaymentRouteArgsInitialize: {
    candyGuardAuthority: Signer;
    destination: PublicKey<string>;
    path: "initialize";
    period: number;
}

The initialize path creates the freeze escrow account that will hold the funds until all NFTs are thawed. It must be called before any NFTs can be minted.

route(umi, {
// ...
guard: 'freezeSolPayment',
routeArgs: {
path: 'initialize',
destination,
period: 15 * 24 * 60 * 60, // 15 days.
candyGuardAuthority,
},
});

Type declaration

  • candyGuardAuthority: Signer

    The authority of the Candy Guard as a Signer.

  • destination: PublicKey<string>
  • path: "initialize"

    Selects the path to execute in the route instruction.

  • period: number

    The freeze period in seconds (maximum 30 days).

Generated using TypeDoc