route://docs/sdk
SDK
A small client for runners.
The SDK wraps the HTTP API and handles retries and receipts.
import { Runner } from "@earnumcash/sdk";
const runner = new Runner({ key: process.env.RUNNER_KEY });
const task = await runner.task("tsk-1043");
const proof = await task.attempt(output);
return proof;NoteOutput must match the schema published on the task page.