• Generates a Program Derived Address for a staking pool based on the project's public key and a key.

    Parameters

    • project: PublicKey

      The project's public key.

    • key: PublicKey

      The key for the staking pool.

    • Optional programId: PublicKey

      The program ID for the staking pool program. Default is PROGRAM_ID.

    Returns [PublicKey, number]

    The generated Program Derived Address.

    Example

    const projectPublicKey = new web3.PublicKey("..."); // Replace with actual project public key
    const poolKey = new web3.PublicKey("..."); // Replace with actual pool key
    const stakingPoolPda = getStakingPoolPda(projectPublicKey, poolKey);

Generated using TypeDoc