• Generates a PDA (Program Derived Address) for the metadata program based on the given mint and type.

    Parameters

    • mint: PublicKey

      The mint public key.

    • Optional type: MetadataPDaType

      The type of metadata PDA (optional).

    • Optional programId: PublicKey

      The program ID of the metadata program (optional, default is METADATA_PROGRAM_ID).

    Returns [PublicKey, number]

    The generated PDA address for the metadata program.

Generated using TypeDoc