• Calculates the Program Derived Address (PDA) for a user account.

    Parameters

    • username: string

      The username of the user.

    • Optional programId: PublicKey

      The program ID for which the PDA is calculated. Default is the hive control program ID.

    Returns [PublicKey, number]

    The PDA for the user account.

Generated using TypeDoc