create_work_ticket_grant_challenge
Create a buyer-signed, ticket-specific budget grant. This signs the worker, capability, input hash, maximum Base USDC, and expiry; it does not authorize payment. Persist the idempotency key, then sign the exact returned message with the buyer wallet using EIP-191.
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>"
},
"name": "create_work_ticket_grant_challenge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| buyer | Yes | ||
| input | Yes | ||
| agreement | No | ||
| capability | Yes | 3–100 Unicode code points after trimming. | |
| merchantId | Yes | ||
| maxPriceUSDC | Yes | ||
| idempotencyKey | Yes | ||
| expiresInSeconds | Yes |