Prepare signed proof of finished work (step 1 of 2)
prepare_proofYou did the work — start handing in proof. Pass the packet's workId, your claimId (from submit_claim), your wallet, and proof items matching the packet's own proof line (photos with GPS for field work; documents/text for digital work). On an hours-eligible job, state the hours you actually worked as hoursClaimed, and whatever the job asks to be counted as counts: you state them, and the human who accepts decides the accepted figure. To count toward a place's Standing, a reading carries measurement.kind "measurement" (with measuredAt, and delta on a re-measure) and a repair carries kind "repair". Returns MESSAGE_TO_SIGN and BODY_JSON. Submitting proof is FREE when signed — a worker is never charged at the moment they have earned the right to be asked for nothing. Sign, then call submit_proof within 5 minutes. Cost and signer: free, no gas; the person signs the result with their own wallet or passkey, and the house never holds a key.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"workId": "<workId>",
"claimId": "<claimId>",
"workerWallet": "<workerWallet>",
"proofs": "<proofs>"
},
"name": "prepare_proof"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gps | No | For geolocated field work: {lat, lng} captured ON SITE — the gate refuses geolocated proof without it. | |
| crew | No | Optional, for a manager handing in proof for a crew: the people who did the work, 1 to 25 of {"ref":"amina","hoursClaimed":2}, refs as on the claim. Either every person states hoursClaimed or none does; stated hours add up to the proof's hoursClaimed (omit that and their sum becomes it). The human who accepts decides the accepted total, split back across the crew in proportion (equally with no per-person hours). Omit crew on a managed claim and the claim's crew carries over. | |
| counts | No | Optional: what the job asked to be counted, in the packet's own units, as plain numbers — {"metres_cleared": 120, "blockages_removed": 4, "check_dams_built": 3}. Lower_snake_case names, at most 40 of them. A numbered count or measurement item is met by a count whose NAME uses a word of the item ("Count of bags removed" is met by bags_removed, never by p3); prepare_proof and a short submit_proof name it. Recorded with the proof; the human who accepts decides the accepted figure. | |
| proofs | Yes | 1-20 proof items. A photo goes in BY REFERENCE: {"type":"photo","upload":"sha256:<hex>","step":1,"capturedAt":"<ISO>"}, where the reference is what `node vealth-agent.mjs proof-photo <workId> <claimId> <photo files>` printed on the person's own machine; the photo bytes never pass through this conversation. A small file may still go inline as {"type":"photo","data":"<base64>"}. Text notes are {"type":"text","data":"…"}. When the packet's proof is numbered (p1, p2 …), tag each entry forItem:"p1" so it answers its own item. The packet's proof line (get_work_packet) says exactly what it needs. | |
| workId | Yes | The packet id. | |
| claimId | Yes | Returned by submit_claim. | |
| measurement | No | Optional: what this proof is. A reading: {"kind":"measurement","measuredAt":"<ISO>","delta":0}, with delta on a re-measure (above 0 better, 0 held, below 0 worse). A repair: {"kind":"repair","measuredAt":"<ISO>","delta":1}. Only a reading counts toward a place's Standing. Without it the proof is accepted as usual and covers no condition. | |
| hoursClaimed | No | On an hours-eligible job, the hours you ACTUALLY worked, breaks out — a positive number, at most 168, to 6 decimal places. You state it; the human who accepts decides the accepted figure. Required on such a packet (the completion gate refuses a proof without it), optional everywhere else. | |
| workerWallet | Yes | The same 0x… address that claimed. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| tool | No | ||
| funded | No | ||
| payUsd | No | ||
| workId | No | ||
| claimId | No | ||
| claimable | No | ||
| next_call | No | ||
| proofRule | No | ||
| fulfillableBy | No | ||
| definitionOfDone | No | ||
| needs_from_caller | No | ||
| notClaimableReason | No |