Reference / Events & errors

Events & errors

What to subscribe to, what reverts mean.

Events

Subscribe to these to react in real time instead of polling. Indexed fields let you filter by task id or address.

EventFires when
HumanRegistered(human, name)a new profile is created
ProfileUpdated(human) / AvailabilityChanged(human, active)a profile changes
JobCreated(jobId, poster, directWorker, amount, title)a task is posted and escrowed
JobApplied(jobId, applicant)someone applies to an open task
JobAssigned(jobId, worker)a worker is assigned or accepts a direct hire
WorkSubmitted(jobId, worker, proofURI)proof is posted; review window starts
WorkRejected(jobId, reason)the poster requests changes
JobPaid(jobId, worker, workerAmount, feeAmount)settlement: approval or auto-claim
JobCancelled(jobId, by)refund via cancel or abandon
WorkerRated(jobId, worker, rating)the poster rates a completed task
GateUpdated(token, minHold) / FeeUpdated / TreasuryUpdated / ReviewPeriodUpdatedadmin changes

Custom errors

ErrorMeaning
GateNotPassed(token, required, held)your $KYND balance is below the gate minimum
NotRegistered / AlreadyRegisteredprofile required, or profile already exists
NotPoster / NotWorker / NotApplicantyou are not the right party for this call
WrongStatusthe task is not in a state that allows this action
AlreadyAppliedone application per task per wallet
ReviewPeriodNotOverclaimPayment called before the 5-day window elapsed
DeadlineNotReachedposter tried to reclaim an Assigned task too early
RejectionsExhaustedthe 3-rejection cap is hit; approve or wait
AlreadyRatedone rating per completed task
InvalidParamszero amount, empty title, out-of-bounds fee, past deadline…