rustycap
The official CapBypass wrapper for Rust.
Examples
Initialization of Solver
use Solver;
let solver = new;
Retreiving Balance
let balance = solver.get_balance.await.expect;
let credits = balance.credits;
Creating a task and waiting for it
let data = json!;
let task = new.data.subdomain;
let solution = solver.create_and_wait.await?;
println!;
TaskInfo enum
| Field | Description |
|---|---|
TaskInfo::Processing |
The task is being processed |
TaskInfo::DoesNotExist |
The task was unable to be found |
TaskInfo::Failed |
The task failed |
TaskInfo::Done(String) |
The task was successful. The String is the solution. |