• Generates a PDA for the token account based on the given owner, mint, tokenProgram, and programId.

    Parameters

    • owner: PublicKey

      The owner public key of the token account.

    • mint: PublicKey

      The mint public key.

    • Optional tokenProgram: PublicKey

      The program ID of the SPL Token program (optional, default is TOKEN_PROGRAM_ID).

    • Optional programId: PublicKey

      The program ID of the token account program (optional, default is PROGRAM_ID).

    Returns [PublicKey, number]

    The generated PDA address for the token account.

Generated using TypeDoc