• Generates a Program Derived Address for the metadata account associated with a specific mint and type.


    • mint: PublicKey

      The mint's public key.

    • Optional type: MetadataPDaType

      Optional MetadataPDaType parameter specifying the type of metadata account.

    • Optional programId: PublicKey

      The program ID for the metadata program. Default is METADATA_PROGRAM_ID.

    Returns [PublicKey, number]

    The generated Program Derived Address.


    const mintPublicKey = new web3.PublicKey("..."); // Replace with actual mint public key
    const metadataPda = getMetadataAccount_(mintPublicKey);

Generated using TypeDoc