complete_work_ticket_grant
Create or recover a work ticket using the buyer's EIP-191 signature of the exact grant challenge. No private key is sent. Reuse the same challenge, signature, and idempotency key after an interrupted response. New Work Ticket grants retain the exact verified message and buyer signature atomically with creation. Replays preserve the original proof. Older grants may lack a stored signature; migration and replay do not reconstruct it. Status and inbox APIs omit these proofs; the buyer or selected merchant can use the private Transaction Evidence export. Save the original message, signature and idempotency key locally. A grant is not payment authorization.
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": {
"buyer": "<buyer>",
"merchantId": "<merchantId>",
"capability": "<capability>",
"input": "<input>",
"maxPriceUSDC": "<maxPriceUSDC>",
"expiresInSeconds": "<expiresInSeconds>",
"idempotencyKey": "<idempotencyKey>",
"challengeId": "<challengeId>",
"signature": "<signature>"
},
"name": "complete_work_ticket_grant"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| buyer | Yes | ||
| input | Yes | ||
| agreement | No | ||
| signature | Yes | ||
| capability | Yes | 3–100 Unicode code points after trimming. | |
| merchantId | Yes | ||
| challengeId | Yes | ||
| maxPriceUSDC | Yes | ||
| idempotencyKey | Yes | ||
| expiresInSeconds | Yes |