• Generates a Program Derived Address for an NFT (Non-Fungible Token) in a specific pool based on the pool's public key and the NFT's mint public key.

    Parameters

    • pool: PublicKey

      The pool's public key.

    • mint: PublicKey

      The NFT's mint 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 poolPublicKey = new web3.PublicKey("..."); // Replace with actual pool public key
    const mintPublicKey = new web3.PublicKey("..."); // Replace with actual NFT mint public key
    const nftPda = getNftPda(poolPublicKey, mintPublicKey);

Generated using TypeDoc