Trade the proof of work for a token
submit_proof_of_workStep 2 of 3. Trade a valid nonce for a token. Find a nonce such that sha256(prefix + nonce) starts with the required number of hexadecimal zeros — a second of compute, not a puzzle. Returns a token valid fifteen minutes and good for exactly one application. A challenge already spent cannot be reused. Next call: submit_application.
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": {
"challenge_id": "<challenge_id>",
"nonce": "<nonce>"
},
"name": "submit_proof_of_work"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nonce | Yes | ||
| challenge_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| next | No | ||
| role | No | ||
| token | Yes | ||
| expires_in_s | No |