findMetadataPda static method

ProgramDerivedAddress findMetadataPda({
  1. required SolAddress mint,
})

Implementation

static ProgramDerivedAddress findMetadataPda({
  /// The address of the mint account
  required SolAddress mint,
}) {
  return ProgramDerivedAddress.find(seedBytes: [
    "metadata".codeUnits,
    MetaplexTokenMetaDataProgramConst.programId.toBytes(),
    mint.toBytes()
  ], programId: MetaplexTokenMetaDataProgramConst.programId);
}