findAllowListProofPda static method
ProgramDerivedAddress
findAllowListProofPda({
- required List<
int> merkleRoot, - required SolAddress user,
- required SolAddress candyGuard,
- required SolAddress candyMachine,
- 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);
}