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

    Parameters

    • project: PublicKey

      The project public key.

    • user: PublicKey

      The user public key.

    • Optional identity: ProfileIdentity

      The identity for the profile. Default is the main identity.

    • 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 profile account.

Generated using TypeDoc