• Generates a Program Derived Address for a deposit based on the NFT mint's public key.

    Parameters

    • nftMint: PublicKey

      The NFT mint's public key.

    • 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 mintPublicKey = new web3.PublicKey("..."); // Replace with actual NFT mint public key
    const depositPda = getDepositPda(mintPublicKey);

Generated using TypeDoc