findFreezeEscrowPda static method

ProgramDerivedAddress findFreezeEscrowPda({
  1. required SolAddress destination,
  2. required SolAddress candyGuard,
  3. required SolAddress candyMachine,
  4. SolAddress programId = MetaplexCandyMachineCoreProgramConst.candyGuardProgramId,
})

Implementation

static ProgramDerivedAddress findFreezeEscrowPda(

    /// The wallet that will eventually receive the funds
    {required SolAddress destination,

    /// The address of the Candy Guard account
    required SolAddress candyGuard,

    /// The address of the Candy Machine account
    required SolAddress candyMachine,
    SolAddress programId =
        MetaplexCandyMachineCoreProgramConst.candyGuardProgramId}) {
  return ProgramDerivedAddress.find(seedBytes: [
    "freeze_escrow".codeUnits,
    destination.toBytes(),
    candyGuard.toBytes(),
    candyMachine.toBytes()
  ], programId: programId);
}