
get
/v4/confidential-rewards/zama/jobs/{jobId}
Poll a Zama encryption jobReturns the status of a job started by POST /v4/confidential-rewards/zama. Once status iscompleted, result holds the encrypted leaderboard. progress is not reported.
A failed job reports its cause in error (for example an amount that overflows the FHE type).
State lives in Redis for 30 minutes, so an unknown or expired job ID answers 404 — start a new job.
The access gate is applied again on the finished result.
Path parameters
jobIdstringrequired
Job ID returned by POST /v4/confidential-rewards/zama
Responses
200Response for status 200
Schema
object
jobIdstringrequired
Unique job identifierstatusenumrequired
pendingprocessingcompletedfailedprogressnumberProgress percentage of the job (0-100)resultanyrequired
Result of the job if completederrorstringError message if job failedcreatedAtnumberrequired
Timestamp when job was createdcompletedAtnumberTimestamp when job completeddurationSecondsnumberrequired
Duration of the job in seconds (elapsed time if still processing, final duration if completed)Example
{
"jobId": "string",
"status": "pending",
"progress": 0,
"result": null,
"error": "string",
"createdAt": 0,
"completedAt": 0,
"durationSeconds": 0
}get
https://api.merkl.xyz/v4/confidential-rewards/zama/jobs/curl -X GET "https://api.merkl.xyz/v4/confidential-rewards/zama/jobs/00000000-0000-0000-0000-000000000000"