findAllowListProofPda static method

ProgramDerivedAddress findAllowListProofPda({
  1. required List<int> merkleRoot,
  2. required SolAddress user,
  3. required SolAddress candyGuard,
  4. required SolAddress candyMachine,
  5. SolAddress programId = MetaplexCandyMachineCoreProgramConst.candyGuardProgramId,
})

Implementation

static ProgramDerivedAddress findAllowListProofPda(

    /// The Merkle Root used when verifying the user
    {required List<int> merkleRoot,

    /// The address of the wallet trying to mint
    required SolAddress user,

    /// 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: [
    "allow_list".codeUnits,
    merkleRoot,
    user.toBytes(),
    candyGuard.toBytes(),
    candyMachine.toBytes()
  ], programId: programId);
}