• Creates an instruction to approve a deposit transaction.

    Parameters

    • params: ApproveDepositInstructionParams

      The parameters required for the instruction.

      • amount: number | bigint
      • associatedToken: PublicKey
      • neonPDAWallet: PublicKey
      • solanaWallet: PublicKey

    Returns TransactionInstruction

    A Solana TransactionInstruction for approving the deposit.

    const instruction = createApproveDepositInstruction({
    solanaWallet: userWallet,
    neonPDAWallet: neonWalletPDA,
    associatedToken: userTokenAccount,
    amount: 1000000,
    });
    transaction.add(instruction);