Usage

Here's a basic example of how to use Cash Captcha:

import { Solver } from "cash-captcha";

// Initialize the solver with your API key
const apiKey = "your-api-key-here";
const solver = new Solver(apiKey);

// Start solving
solver.start();

// To stop solving
solver.stop();

Best Practices

  • Initialize the solver as early as possible in your application lifecycle.

  • Use the categorizeDevicePerformance function to adjust solver behavior based on the user's device capabilities.

  • For custom implementations, ensure proper error handling to gracefully manage any API communication issues.

  • Consider user consent and provide an opt-out mechanism if necessary.

  • Monitor your earnings and adjust your integration strategy as needed.

Last updated