
Loading...

Loading...
Capability ยท Economics
Project what a worker earns from the protocol economics - the AIConfig fee split, model fees, and stake floor are live from Mainnet; gas per job is a static estimate, not a live read.
import { WorkerOperator } from "lightnode-sdk";
const op = new WorkerOperator("mainnet", { publicClient });
// Live fee split + model fee minus an estimated gas cost per job.
const p = await op.profitability({ modelTag: "llama3-8b", jobsPerDay: 100 });
console.log(p.workerFeeLcaiPerJob, p.netLcaiPerJob, p.projectedDailyLcai);Same numbers, in code - op.profitability({ modelTag, jobsPerDay }) reads the live AIConfig fee split and model fee.