Jobs

      

    Fetch inference job details and status from the on-chain JobRegistry.

    Retrieves the full on-chain record for an inference job by its numeric ID. Returns the requester, assigned node, model, payment amount, timestamps, and current status. Job statuses progress through: pending → assigned → completed (or disputed/failed). The isChallenge flag indicates whether mathematical verification was triggered.

    Endpoint

    GET/api/jobs/{id}

    Response

    FieldTypeDescription
    idnumberJob ID.
    requesterstringAddress of the job requester.
    assignedNodestringAddress of the node assigned to the job.
    modelIdstringCompressed model used for inference.
    inputHashstringHash of the input data.
    outputHashstringHash of the output (set on completion).
    paymentstringETH payment amount (wei).
    createdAtnumberUnix timestamp of job creation.
    completedAtnumberUnix timestamp of completion (0 if pending).
    statusstringpending | assigned | completed | disputed | failed.
    isChallengebooleanWhether mathematical verification was triggered.

    Example Usage

    Response

    {
      "ok": true,
      "data": {
        "id": 1042,
        "requester": "0xAbC1230000000000000000000000000000000001",
        "assignedNode": "0x742d35Cc6634C0532925a3b844Bc9e7595f2bD18",
        "modelId": "llama-3.1-8b-compressed",
        "inputHash": "4578706c61696e207175616e74756d...",
        "outputHash": "7a2b3c4d5e6f...",
        "payment": "1200000000000000",
        "createdAt": 1711500000,
        "completedAt": 1711500120,
        "status": "completed",
        "isChallenge": false
      }
    }